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.
Related
I am creating an application using which users will manage their Facebook messenger and post comments on a page. I have implemented the Facebook Login which asks the user for page_messaging permission. I have also configured the webhook and it is working fine.
Now, Facebook documentation states the following
Generate a Page access token to start using the platform APIs. You
will be able to generate an access token for a Page if:
You are one of the Page admins, and
The app has been granted the Page's permission to manage and access Page conversations in Messenger.
So, how can I make my webhook listen to the messages of the page that have granted me permission to manage and access the page? I have looked for hours trying to find this in the documentation. No Luck!
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 went through the documentation for creating a chatbot for messenger platform.
All I find there, I need a server, which in the case used as a service for the Facebook platform.
The server also validates the webhook from facebook app.
Now I see, for a chatbot, I need a facebook app, webhook server and definitely a facebook page.
Then I find an application Flow XO, where I only put the page name and the bot is ready.
My question is, how they(flow.xo) can communicate facebook page without a Facebook app(appId, appSecret) and webHook.
My question is, how they can communicate facebook page without a Facebook app(appId, appSecret) and webHook.
They can’t.
They use their server and their app to communicate with the API, on behalf of the users that grant them access to their pages, by providing the necessary permissions when they log in to that app.
Facebook allows to create a Facebook App which integrates multiple chatbots. At Amio, we ask you for permission using Facebook OAuth. When you give us these permissions we send and receive message on your behalf. This allows you to create a chatbot using Amio API without need of creating a Facebook App.
Facebook Page is always needed as this is the entry point of users interacting with your bot. You can check Amio documentation for more detail.
Do you know if there is any way to publish on my web app the facebook messages published by the users on my facebook wall application?
I'm using spring social and I tried to use the code you can see below:
facebook.feedOperations().getPosts()
With this sentence, it is launched an exception alerting that Authentication is needed.
Thanks.
Regard
Nope. If you could, then Facebook would need to seriously evaluate their security. The user needs to give you permission to access their data. After authenticating can use the returned user token to access the user's Facebook wall posts.
I'm looking to publish information from my WP7 app to the user's Facebook wall. I've been scouring the internet but I can't find any help.
Does anybody know how to get the user logged in and post a status? I'd also like to know how to post a detailed status, say an image and text at the same time. Is this possible?
I wrote an open source Facebook login control for WP7 that makes it pretty easy to get an auth token from a user. The github project has an example. Once you get an auth token, you can then do an HTTP POST to /me/feed with that auth token. The WP7 example in the Facebook C# SDK does this (and also has code to do the oauth login).