How to solve Facebook conversations API issue? - facebook

Can anyone help me for Conversations API?
I am getting following error :
(#12) This endpoint is deprecated for versions v2.4 and higher
FB.api('/470645953121535/conversations'

Related

(#12) singular published story API is deprecated for versions v2.4 and higher

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!

Post to group via Facebook Graph API is not working

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.

Instagram Insight Metrics with Facebook Graph API

I am trying to use the Facebook Graph API to GET Instagram metrics such as post impressions. I was able to successfully pull my Instagram Follow Count by using this query
{instagram_user_id}?fields=follow_count
When I try to query my post impressions with
{instagram-media-id}/insights?fields=post_impressions
nothing shows up. Am I missing something or have I possibly not requested the correct permissions?
I am trying to follow the documentation at the below link. Is it even possible to pull the impressions through the Facebook Graph API?
https://developers.facebook.com/docs/graph-api/reference/instagram-media/insights/
Thanks!
I believe that it wasn't possible to pull insights using the older version of the API.
However now it is possible as instagram / facebook just released a new version of their Graph API that includes insights. The request would be:
v2.10/{instagram_media_id}/insights?metric=impressions
The new documentation can be found here
Have you tried to specify "period" parameter? By default it might not be a "lifetime" and if you did not generate any impression recently you will see nothing (empty array i assume). In case you missing some permissions, Facebook will make you aware in response.

Facebook Graph API: read messages in v2.8

since read_mailbox is deprecated, I was wondering if there's still a possibility to get all of my messages via API or any other service?
/v2.4/{user_id}/notifications operations as well as read_stream, read_mailbox, and manage_notifications permissions are deprecated in v2.4.
Thanks in advance!
No, there is no possibility to get access to the user messages anymore, you can only get messages of a Page with the conversations endpoint.

OAuthException: (#12) events management API is deprecated for versions v2.0 and higher

i am stuck on this error when i post event to my wall through offline posting
OAuthException: (#12) events management API is deprecated for versions v2.0 and higher
You can't create events anymore with the Graph API v2.0:
https://developers.facebook.com/docs/graph-api/reference/v2.0/event/#publish
https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api
Quote:
the create_event permission is no longer available.