send app request - facebook

I have successfully send app requests as shown below
but I want to send a request like the following picture app. how do I send it? what can I use graph?

Only user-to-user requests will generate the notification you want. You should utilize the Facebook Request dialog to send a user-to-user request.

Related

Does Facebook send live data on ngrok callback url?

I want to receive live lead_gen data on my rgrok callback URL.
I am able to receive test data on ngrok callback URL but I am not receiving any live data on it, My app is reviewed and is live mode.
Yes, Facebook sends live data on ngrok, the problem I had was that my business was not verified thats why I couldn't receive callbacks from facebook API.

Facebook Request over PHP

I'm trying to generate a User to User Request out of my App in Facebook.
The thing is, that I only find tutorials which use JavaScript. But I want to send a Request to a Friend out of my PHP environment.
Do I have to use te Api Call somehow?
Thanks for your help!
There isn't a PHP Call available to send requests to a user, you can only use the Requests JavaScript API call for this. This is there to prevent abuse of requests - by preventing automatic sending of requests in the background without the user's consent.

Facebook application request doesn't send notofication to users

i have a facebook application and i used Facebook Request Dialog https://developers.facebook.com/docs/reference/dialogs/requests/ in order to send requests.
Everything seems fine, except the notification is not actually sent to the user (i tried with 3 users), though the request is practically from a user to another user.
What can be wrong?
Thanks a lot!

Sending application requests that appear in the left column on Facebook home page?

At the left column on facebook's home page, a notification from Facebook applications appears with a gray character, for example, "APPLICATION NAME [1]".
For example, Badoo app displays this type of notification when a friend has answered my question.
How do I display this notification for my own application?
Your English is great, hkweb. To send the user a "Notification", you must send a POST request to the user's /apprequests connection. You'll need a valid access_token for the user and this user must have "installed" your application before you can send them notifications like this OR use the Requests Dialog. Afterwards, it's as simple as sending a POST to:
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 be sent is "message", but you can also send a JSON-encoded dictionary of parameters in the "data" parameter. I recommend you play with the API Graph Explorer. There you can send yourself apprequests with a POST, check your pending ones with a GET and clear pending requests with a DELETE request to
https://graph.facebook.com/{ID_OF_REQUEST_OBJECT}
If you're developing an application on Facebook (like a canvas app), you can make use of the Requests Dialog which makes sending the POST very easy and gives you a friend selector as well.
You can also get the user's pending apprequests by sending a GET request to the same object.

how to send facebook Notification or message via its api?

please let me know how can i Send facebook Notification or message via its API through a facebook app?
You can use the Old REST API to send notifications to users who have authenticated your application. First you must request the "email" extended permission from the user, then you can use the notifications.sendEmail method to send them the notification.
I used this dialog to send message one my one. But had no luck to send message to facebook account successfully.
https://www.facebook.com/dialog/send?app_id=MY_APP_ID&name=Check This Website&to=MY_APPLICATIONS_USER_ID&link=MY_WEBSITE_LINK&redirect_uri=MY_APPLICATION_URL