Is it possible to send a message automatically with the Facebook Graph API to a Facebook user who is not a friend or user of the authorized application?
I know that we couldn't before.
but is there a method today?
SHORT Answer
No you can't
Long Answer
If the conversation is between two Facebook Users :
No you can't use Graph API, because you won't get the mailbox permissions.
If you don't need to use the GRAPH API, consider the SEND Dialog, then it should be possible
https://developers.facebook.com/docs/sharing/reference/send-dialog
If the conversation is between a Facebook Page and a Facebook User
You can send only a message if the Facebook User initiated at first the chat with the Facebook Page.
As you noticed, none of these meet your Use case :)
I hope this answers your concern
Related
I had read the API reference, but still not sure if it's possible to send message to a friend? Suppose I had get access_token from user.
I want to use the API to display user's friends list in my Web UI, and the user can choose a friend and start to chat with the one.
Is it possible for my Facebook app, with the authorization of the user, to send messages to the user's friends as a page? If so, how would one go about this? Would it be the Page Call to Action in the Graph API?
Thank you, I'm pretty new to the Facebook API.
i am building a website with Facebook login. is it possible to send a post to my friends time line or notification to my friends using graph API. i want to build invite Facebook friends to my website. can some one help me on this
Posting to the timeline of a friend was remove a long time ago, because it´s considered spam in most cases.
Notifications cannot be sent to friends either, luckily ;)
There are "App Requests", but they are only allowed for games on facebook.com and not for external websites.
The best (and easiest) way for you is to use one of the Social Plugins:
https://developers.facebook.com/docs/plugins/send-button
https://developers.facebook.com/docs/plugins/share-button
https://developers.facebook.com/docs/plugins/like-button
How can I reply to a private message on a fan page using the Facebook Graph API in a Facebook app?
I am able to retrieve private Messages from a fan page
I am able to reply as a user using chat API (User to User only)
I have valid tokens
I have read_mailbox, read_page_mailboxes permissions, and the following permissions to the page too:
ADMINISTER,
EDIT_PROFILE,
CREATE_CONTENT,
MODERATE_CONTENT,
CREATE_ADS,
BASIC_ADMIN
I am doing it as described here.
Some claim to have gotten around this. How have they managed this?
The documentation you linked to answers this question quite clearly.
From the docs:
**How to Reply**
Note that a page can only reply to a user's message. It cannot initiate a private message with a user. Also, a page can respond not more than twice to a user's message before the user has replied back.
You can reply to a user's message by issuing an HTTP POST to /CONVERSATION_ID/messages with the following parameters. A conversation ID look like t_id.216477638451347.
Parameter Description Type Required
message The body of reply string Y
I've a situation in my application where I need to send apprequests (or any way of sending any request to my users) for both my facebook friends as well as the same application users.
The problem with this is ,
when we are sending apprequests using application itself(using app_access_token) we can't send app requests to my facebook friends who are not yet part of my application ("oAuthException : User must accept TOS" will be thrown).
So when i use the 'Request dialog' (FB.UI app request method) its possible to list/send requests to only FB friends .
So i need a solution for having a method where i can list all my user's FB friends and application users and send apprequest at once to all..
Anybody has tried something like this before?
And also i tried FB.UI (send method) and searched for graph API and also considered option of posting wall message and everything doesn't work both types..
Any help on this?
May I draw your attention to the following Facebook Documentation for AppRequests:
http://developers.facebook.com/docs/reference/dialogs/requests/
You need to have a look at the section headered "Frictionless requests".
From what I understand from this sentence:
Upon first sending a request to a friend from within an app, a user may authorize the app to send subsequent requests to the same friend without prompting for his permission.
It sounds like there is no way to "bulk" send to all of a user's friends, it is on a friend-by-friend basis. It sounds sensible to me, I wouldn't want my all of my Facebook friends to be flooded with invitations either.
You could however opt for prompting the user with the Friend Request interface which is much friendlier to your users... this is available using the Javascript SDK.