I am reading about Facebook's Graph API and wondering if i can use page access token to access/read messages sent to my personal account? And if it's a no, Please tell me how to access.
You can access Facebook Page messages with the conversations endpoint: https://developers.facebook.com/docs/graph-api/reference/v4.0/conversation
Related
I'm trying to use the Instagram Graph API from Facebook. I need the media, stories and some profile information like follower. The problem is, that many users have no Facebook page which is connected to a instagram account.
Is it possible to use the Instagram Graph API without Facebook Login? The best solutions would be a login via Instagram or login via Facebook but without required page. Have anyone a suggestion?
I read through the documents and did a bunch of testing.
Here's what I think is necessary for using instagram Graph API as of 21-01-2021:
A facebook login to get fb access token
A page that connect to a business/creator account
We can get the connected instagram business/creator account's data by the token.
If users do not have facebook page is your concern, consider to use the instagram basic api instead.
I think it is possible to get ig data without facebook technically. Hope facebook get provide a clearer instruction and docs for developers in the future.
I'm kinda getting lost on Facebook documentation. I'm creating a Messenger Bot. This bot is also integrated with Facebook Graph API and needs to read the users wall so he needs the user_posts permission.
My question is: how do I get this permission?
As far as I've understood, there's no real way to get it from the Messenger Platform API. So, I've started looking into the Login API. Here I found out that I can get a user access token using an embedded Javascript in a web page to show the Facebook login dialog and letting the user to access their profile.
However this sounds so cumbersome... Is there an easier way to do this?
Thank you for the help.
I am creating an application where I need a user to be able to grant us access to their facebook page so that all incoming messages can flow through our application (as well as outgoing).
I have this all working correctly, but facebook will not approve my app due to the facebook permission pages_messaging and them "not receiving a response from my bot" (I have been denied three straight times). What am I doing wrong here? We are not using bots, do I even need the pages_messaging permission (I am using their webhook to get incoming page messages, and graph api to send outgoing)?
When submitting app, pages_messaging permission says:
Please provide the page that can be used to test this bot. Make sure the bot is properly connected and functional, otherwise your submission may be rejected.
Here is facebook's feedback from my submission (denied multiple times):
Thank you for your submission. We tested the messenger experience on your associated page and received no response from your messenger bot. Please resubmit with the new, improved version of your bot.
You got to create a bot to use the messaging API: https://developers.facebook.com/docs/messenger-platform/implementation
To just read/send messages:
https://developers.facebook.com/docs/graph-api/reference/v2.6/conversation/messages
You can use the /pageID/conversations endpoint to retrieve all conversations your page has had with FB profiles.
Next you can read/post to the /conversationID/messages endpoint to read/respond to a person.
And you can even subscribe to the conversations field for pages with webhooks.
You will need a page admin's page access token that has the read_page_mailboxes permission scope to set up the subscription, and to read/reply to messages.
I'm building a PHP application on a website to allow members of a secret Facebook group to retrieve all the YouTube links posted on the group wall. To do that I need to retrieve the feed of the group which I did using open graph. I generate an access_token thanks to graph API explorer and I managed to display the feed but it relies on the access_token which is eventually going to expire.
How can I do to be able to call the API's functions at any time with a valid access_token?
I was thinking about asking the visitors to connect with their Facebook account onto the application so that they can make a request with their own token.
Do you have leads on how I could do that?
Thanks i just created a dum app on facebook to allow oauth on my website and that did the trick.
I am trying to figure out if it would be possible to authenticate a specific user, with said users username and password using the graph api, and the posting a message to their wall.
Is this a possibility with the graph api?
Thanx in advance!
You can present users with a webpage (provided by facebook) for entering their credentials. Facebook will then give you back a 'token' which you can pass into the Graph API to do things on that user's behalf. Read more about this at http://developers.facebook.com/docs/authentication/