I want to get all PSIDs associated with my messenger app. I know i can get each PSID in the field webhookEvent.sender.id (nodejs) but i want to get them all by Graph API.
I have read the documents but there's seem no API like that.
I found a way to get PSID from ASIP from this doc: https://developers.facebook.com/docs/pages/support/psid-api#getting-psids-from-asids
But this has been deprecated.
Is there a way to get all PSIDs?
Related
I am trying to build an application where admin users would trough a form insert "events" containing title, description, starttime/endtime and some other fields. At the moment theese users are primarily using facebook to reach out to their users, they would like to be able to move to my app aswell as stay on facebook without too much hassle. I solved the issue of getting the events of facebook by having them all sign up for the graph api with their community/company pages and giving me the access token to fetch data about their events trough a get request to.
https://graph.facebook.com/v15.0/me/events?access_token={their token}
Now my next task at hand was simple i tought simply make a post request to the same api endpoint, but i quickly realized i was not able to do this and well i do not know how to proceed to be fair.
Tried to make a post to the same endpoint but got errors and after searching the documentation found that this was not supported??
I want to delete a specific post on Instagram with JavaScript using API
I tried how to remove a post from the following document.
https://developers.facebook.com/docs/graph-api/reference/v13.0/post#deleting
but, I got the following error.
Unsupported delete request. Object with ID '{post_id}' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
Instagram does not yet support delete via their API. Please see the content publishing API.
I'm trying to get the details of the user using the access_token from the Instagram APIs, Instagram Basic Display API and Instagram Graph API. What I found is the details are bit messy and by going deep into it I'm not able to conclude the final result as I want.
What I got to know during the implementation is that Instagram has stopped the public APIs. does that mean apart from getting auth-token then had stopped everything?.
I have even tried the Instagram Basic Display API which is only giving the access of 4 fields account_type, id, media_count, username. Is it possible to get any other field from the same API?
If so How do I get the profile picture of the user and other basic details of the Instagram user?
any help will be appreciated
Currently, the API endpoint for retrieving a user's profile information only allows for the retrieval of the 4 fields you listed above. This is, up to now, all that has been made available for retrieval through the me endpoint of the Instagram Basic Display API for getting a User node.
Until the API developers further extend the API's endpoints and capabilities, you won't be able to use this API programmatically to get a user's profile image.
I am trying to extract my posts, via Graph API from facebook. I used some basic code snippets but they don't work. I can not get my feed even in the Graph Explorer. It always says that I don;t have the permission and I have to submit my App for review and provide a video tutorial on how I use the extracted posts.
But I want to extract just my posts, I don't care for anybody elses. Do I seriously need FB App review to do that?
This is what I get with my token from my app:
user/posts requires additional contract signing:
Use /me/posts with your own App, with your User Token and authorize with the user_posts permission. This works without any approval from Facebook - for your account and your App only, of course. I just tested if it still works in the Graph API Explorer and it did: https://developers.facebook.com/tools/explorer/108138225915615/?method=GET&path=me%2Fposts&version=v5.0
How could I get the facebook page feed, when the user isnot loged in.
I could get app access token,after that how I need to fetch data via graph api.
Please provide a sample and could I test that in facebook explore tool.?
All you really need to do is make a request to:
https://graph.facebook.com/v2.0/PAGE_ID?access_token=APP_ACCESS_TOKEN
So, for example, to get CocaCola's page feed, the request would look something like this:
https://graph.facebook.com/v2.0/40796308305/feed
The endpoint you're dealing with here is /{page_id}/feed. The relevant documentation can be found here - https://developers.facebook.com/docs/graph-api/reference/v2.0/page/feed.
For your convenience, here is a link directly to the API explorer with the relevant query:
https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=40796308305%2Ffeed&version=v2.0