I have created an API to post in a facebook group. I have installed the app on this group and I got the approval of using groups_access_member_info, publish_to_groups, Groups API.
But when i try to post using this API it shows me the error.
GuzzleHttp\Exception\ClientException: Client error: POST https://graph.facebook.com/v9.0//feed?access_token=EAAdDfw1wYHMBAKgXanbDHMHtKK04O5jO5gvQZCjOdHd38ni9D2x5IFDXkOQamJDYNoCBwbsJl0uZC6xBVgAvdYQb8xQJqwYqJvwSZBydCzPLy6MvyaiCtmXUPZA77QM0Q4ZAsuUgvQfkRyz4ePRMz6J7FndtVTDiuOeuHQ1WvZBBTMg7sMBSEp45LmEKE4m3EZD resulted in a 403 Forbidden response:{"error":{"message":"(#200) If posting to a group, requires app being installed in the group, and \\n either p (truncated...)
Could you please help me out? Thank you.
Related
I'm seeing this error for a page with this endpoint:
12345566/feed?fields=insights.metric(post_impressions_unique,post_impressions)
and I'm seeing this error: User doesn't have enough permissions to load insights
I've added the following permissions: read_insights pages_read_engagement, etc that is required according to the docs here but when I contact Facebook Developer support they say I have to add it at to Granular Scope.... how do I do this? I've attached a picture showing what the token debugger shoes for this Page Access Token permissions
I did have a similar issue on some of my pages. I did reach the Facebook's support on the matter.
TL;DR use /published_posts instead of /feed
Facebook's support full reply:
I have investigated this and I have a solution for you. Instead of using the /feed endpoint for the Page, please use the /published_posts endpoint instead.
The 'feed' for a page includes posts made by other Users/Pages when they tag your Page. When you try to access the insights for these posts made by other accounts, we run into the issue that this access token does not have the permissions to view those insights.
The 'published_posts' endpoint only includes posts made by the page itself, so you will be able to retrieve the insights using this.
Thank you for flagging this to us. I will see if there are improvements that could be made to our documentation or error messaging to improve the experience of other developers.
I am trying to share photos on Instagram using Graph API. Does anyone know how to fix the error I'm getting? It gives an error even though I share it as in the document, I gave all permissions for the user.
Using Request 1
https://graph.facebook.com/v10.0/ig-userid/media?image_url=https://as2.ftcdn.net/jpg/00/53/45/31/500_F_53453175_hVgYVz0WmvOXPd9CNzaUcwcibiGao3CL.jpg&caption=%test&access_token={access_token}
Using Request 2
https://graph.facebook.com/v10.0/ig-userid/media?image_url=https://as2.ftcdn.net/jpg/00/53/45/31/500_F_53453175_hVgYVz0WmvOXPd9CNzaUcwcibiGao3CL.jpg&caption=%test
Facebook Example Request
graph.facebook.com/17841400008460056/media
?image_url=https//www.example.com/images/bronzed-fonzes.jpg
&caption=#BronzedFonzes!
I'm working on a port of Facebook messenger capable of running on Mobian and a variety of other mobile Linux distributions. I've got the oAuth process working as expected but have hit a wall trying to display a users conversations. According to the following error I need the read_mailbox permission.
Reading mailbox messages requires the extended permission read_mailbox
Unfortunately this is no longer available, I'm hoping somebody could suggest an alternative/newer permission which would achieve the same purpose as I've not been able to find one so far.
I'm using restfb to make the HTTP request to endpoint "me/conversations" with the following code
Connection<Conversation> conversations = client.fetchConnection("me/conversations", Conversation.class);
Thanks in advance, all.
I am using facebook graph api to get all the conversations of a facebook page using the page access token. Everything is working fine. However , in some cases the graph api is not returning all the conversations. The conversation is present in the inbox when I go and check it but the graph api is not returning the same. How could this be happening? I googled a lot about this , but to no luck. Any help would be greatly appreciated.
Note: I am using graph api explorer to pull the conversations using the conversations endpoint.
Am quite new to php, facebook graph and stackoverflow so please forgive. Previously, the following in my php script worked to get an access token for a facebook group:
graph.facebook.com/oauth/access_token?client_id={$appId}&client_secret={$appSecret}&grant_type=client_credentials
What should the request be now? (I know my app-scoped user-id if that helps?)
Background: It's a simple server-to-server app to copy photos from a facebook group to a website. Therefore logins don't apply. It's been reviewed and my business verified (that was fun... not!). I've added my app to the group's settings, but can't find the next step. Any help appreciated, thanks.