I'm trying to fetch all events from a single page to display them on our website. The problem, however, is that the API gives me only events that are created by the page itself and no events that have been added to the page. So when browsing the events at facebook, the user sees events that are not listed on our website.
Right now, I'm requesting the events with my personal user token that has manage_pages for the specific page. When using a page access token obtained by the Graph API Explorer I get even less events.
I'm using this endpoint: https://graph.facebook.com/v3.1/<Page>/events
Related
i'm trying to create a Facebook Event from Postman.
My project consists of an Event Management and Sharing System.
I was able to post a Facebook Posts of type text, link, photo, multi-photos, and video from Postman to my Facebook Page.
I'm confused about what i should do to create events through Facebook API.
At the page Event - Graph API Reference i read that "Access to Events on Users and Pages is only available to Facebook Marketing Partners".
At the page API Official Events | Facebook Developers i read that "we are temporarily pausing new integrations with partners, but you are welcome to complete the form below. Please note that responses to this form are monitored but you may not receive a direct response."
Should my company make a request to become a Facebook Marketing Partners or there's another way of creating events of facebook through Facebook API?
EDIT: i forgot to say that through Postman i'm able to retrieve an event performing a GET to https://graph.facebook.com/v13.0/980993592785922/?access_token={my_long_lived_user_access_token_with_proper_permissions}
Context: I'm building a webhook with NodeJS to get events from Facebook Page with my Facebook App. These events are: feed, mention (when a user tags the page on his wall) and message. I can get all events without problem. In all events I need to identify the user who write. When the users write a post or message in the page I get an ID (PSID) but when the user write a post on his wall tagging the page I can't get PSID, this is obvious because he isn't in the page scope. The only I get from this event is user-id from post-id.
I have tried the following:
I used this endpoint GET: /<user-id>/ids_for_pages as indicated in the documentation. This doesn't work for me because I would need that the pages are in my business administrator and this isn't possible because I need this webhook to manage many pages to many companies.
I used this endpoint GET: /<psid>?fields=name,id for events of type feed and messages (from Messenger) into the page but this gives me only PSID again.
Note: In my DB I save long-lived token of my page, ASID of the site owner and Page ID when my user does the login in the UI.
My questions:
Is possible transform user-id to PSID?
Can I get user-id through the PSID?
If you have a better idea to unify IDs when is the same user, I would like to know it. If this isn't possible I would also like know it.
My Goal: Each user event goes to the same case for the same user in my API, for this reason if the user is the same when tags the page and/or write a message in the page the idea is to identify him like same user and not like new case.
I am using the latest version (11.0) of the Facebook API. I'm trying to get user's events using the Graph API Explorer. I can get the user's pages and events for each page, but can't get user's events.
The response of the request with events endpoint is an empty array. After adding debug=all to the request, I get the following error The field 'events' is only accessible on the user object after the user grants the the permission for user events'. , but there is no permission for user events in Graph API Explorer.
What should I do to get the user's events.
According to the docs, there is no events edge for users anymore: https://developers.facebook.com/docs/graph-api/reference/user/#edges
The error message may be misleading.
I wanted to retrieve job applications from Facebook page using graph API. In the graph explorer i have applied my page Id in node. where we can see several fields like post, conversations, likes... Now if a person clicked "Apply now" button on facebook page. Facebook will capture the vital information to prepare resume. Now i wanted to pull those information against the job post. How is it possible using graph api https://developers.facebook.com/tools/explorer/
I believe that facebook requires you to set up a recruiting manager to access the jobs feed via that user instead of accessing the job information via the graph api for a page. This ensures that the business that owns the page has one person assigned to handling the job interactions and that the application information is being kept secure.
https://developers.facebook.com/docs/pages/jobs-xml/how-to/
I am successfully publishing events via the Open Graph APIs and can verify the entries show up on my Activity Feed. However, these events are not showing up on the newsfeed. They will not show up for the user I'm posting from, nor friends of the user (who are administrators of the application) as well. If I go to http://www.facebook.com/myuser/activity/id_returned_from_post, the entry is there. Why would it not show up in the newsfeed?