Submitting application requests that appear in the left column on the Facebook homepage?

A notification from Facebook applications with a gray symbol, for example, “APPLICATION NAME [1]”, appears in the left column on the facebook homepage.

For example, the Badoo app displays this type of notification when a friend answered my question.

How to display this notification for my own application?

+2
source share
1 answer

Your English is wonderful, hkweb. To send a Notification to a user, you must send a POST request to / apprequests . For the user, you will need a valid access_token , and this user must “install” your application before you can send them notifications like this, or use the Request dialog box . Subsequently, it is as simple as sending a POST:

https://graph.facebook.com/{USER_ID}/apprequests?access_token={ACCESS_TOKEN} 

or

 https://graph.facebook.com/me/apprequests?access_token={ACCESS_TOKEN} 

The only required parameter to send is a "message", but you can also send a JSON-encoded parameter dictionary to the "data" parameter. I recommend you play with the Graph Explorer API . There you can send yourself apprequests using POST, check your pending with GET and clear pending requests with DELETE request for

 https://graph.facebook.com/{ID_OF_REQUEST_OBJECT} 

If you are developing a Facebook application (for example, a canvas application), you can use the Requests Dialog , which makes sending POST very easy and gives you a friends selector.

You can also receive pending user requests by sending a GET request to the same object.

+3
source

All Articles