How to retrieve Job Applications from Facebook Page using graph API - facebook

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/

Related

How to create a Facebook Event using Facebook Graph API in 2022?

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}

Autoposting from fb Page's feed to Messenger

Is it any way to subscribe to any page's feed update (not only pages where you are admin) ? Like on https://manychat.com .
So the variant with webhook doesn't appropriate, because you can get feed updates only for administrated pages.
In facebook api pages I found "API Public Feed". Is it what I need?
And if it is, how I can get acces to it (because there is a message that acces is restricted https://developers.facebook.com/docs/public_feed)?
You can only check for updates on Pages you do not manage on a regular basis on your own. For example, with a Cron Job. For webhooks (Realtime Updates), you need to manage the Page.
Public Feed API is not what you want, and it is restricted and you cannot apply for it, as you can read in the docs.

How to access Instagram feed of any user with new Graph API?

Facebook recently introduced Instagram Graph API, which allows to fetch data from Instagram page that is connected to your Facebook company page, instagram.com/developers states:
The Instagram Graph API is Now Available to All Developers.
For Non-Business Instagram Accounts please continue to use the existing Instagram API.
So, for example, if my company has account instagram.com/my_first_company, I can only retrieve its feed and no one else.
Using old Instagram API to retrieve public_content permission (access to any feed) is no longer an option too, from old API documetation:
public_content - to read any public profile info and media on a user’s
behalf (applications no longer accepted)
What will happen to existing tools that have public_content permission? (for example, there are tons of plugins for various CMS that allow to display recent Instagram photos)
Is there any valid way to access public_content (access to any feed) right now (besides fetching HTML pages of Instagram website)?
Are there any plans to enable Graph API for non-business customers, of so when?
UPD. There seem to be ?__a=1 endpoint that allows to get access to recent photos of any public feed without any tokens. But it's not official and no one knows when/if Instagram will close it. If you do - please let me know.
UPD 2. Instagram removed ?__a=1 endpoint, not sure for how long, probably forever. Currently the only way to access instagram feed is to scrap instagram.com website, which is a horror.
Prerequisite: You first need the business Instagram account to be linked with FB Page. https://help.instagram.com/356902681064399 - That one can do from the profile page of Instagram account.
Get the Instagram business account id:
graph.facebook.com/v2.8/<fbPageId>?fields=instagram_business_account. (the fbPageId is the page id of the facebook page the account is linked)
To fetch instagram media feed: graph.facebook.com/v2.8/<igBusinessId>/media to fetch the media feed of the Instagram account. (the igBusinessId is the id returned in above linked instagram_business_account) - This is still owned media as per the page access_token. Not any other user's feed.
All other endpoints (such as comments moderation, detailed insights API) mentioned here works on the business media list returned on above call.
Please note:
This still does not allow to fetch un-authenticated user's Instagram feed. That is not possible via API now. There is no valid way via API to get to public_content scope. There can be few Instagram Marketing partners for which this is enabled. But, in general the scope is deprecated now!
Currently, for FB graph API to work we need linked business page to Instagram account. As above apis uses page tokens.
You can get information about any IG business account using your FB access_token using the business_discovery API as given here.
You must have an IG business account to read other users data like user_info or media details using the id of your IG business account as a node.
Ex:
GET graph.facebook.com/[YOUR-IG-BUSINESS-ACCOUNT-ID]?fields=business_discovery.username(USERNAME){media{caption,media_url,media_type,like_count,comments_count,id}}

How to get news feed exactly how it appears in facebook homepage newsfeed using api

I am using /me/feed and /me/home to get my feed and my homepage feed respectively.
But the /me/home only shows updates from my friends. I am following many people but not friends with them. My facebook homepage shows all the updates including my friends and the people I am following.
How to get the news feed exactly like the one appears in the fb website?
As #Fabio said, the Graph API does not support it as of now (and I don't think it'll do that in the future). You can only obtain yours and your friends' feeds using the Graph API.
In order to obtain the feeds from a specific person who's not in your friend list, you need a valid User Access Token from that user with a read_stream permission.
There is however a way to read the public feeds of user status updates and page status updates as they are posted to Facebook. This can be done by using the Public Feed API. This will include all feeds that have their privacy set to ‘public’ are included in the stream. Also, you cannot apply to use the API at this time as its access is limited. Its page says:
Access to the Public Feed API is restricted to a limited set of media
publishers and usage requires prior approval by Facebook. You cannot
apply to use the API at this time.
But I think it's just a fancy way of saying that this API is not free and you'll be charged few dollars (which you can find out by getting in touch with someone at Facebook) for using this service.

Open Graph insights for specific post

We have a Facebook Application with custom Open Graph objects and actions.
We then use a App Access Token to post stories for a particular user from our backend with the normal Open Graph REST API. After the post-call succeeds we log the returned "id" of that post.
Now we would like to collect insight data (e.g. post_impressions_unique) for some of these individual posts/stories using the logged id's.
According to https://developers.facebook.com/blog/post/573/ we should be able to do something like:
https://graph.facebook.com/[POST ID]/insights
Even though this call seems to work using our normal App Access Token, no insight data is returned for the post/story.
Does anyone know if this is possible and how to do it?
We have been experimenting with a normal User Access Token and the "read_insights" permissions, but with no luck. I have read some similar questions but mainly regarding page-posts (this is an App Open Graph post/story).
EDIT:
The facebook article above only refers to "Page" posts. I'm looking for analytics on individual Facebook App Opengraph Posts/stories. It seems difficult to find any good information about this, has nobody attempted this with any success?
You must add insights into a permissions/Extended permissions
Article :
Getting Page Insights
In order to obtain Page Insights via the Graph API, you must use a Page access token, and you must have the read_insights permission. Click on the link below to see this working in the Graph API Explorer.