As a Facebook Page admin, I want to be able to publish a visitor's post through the Graph API. The documentation on Facebook's developer's portal explicitly states that the is_hidden field is not valid for approving a visitor's post on a Page. Is there another Graph API endpoint that I can accomplish this with?
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}
Let's say I have a facebook page, if any post happens on that page the same content should also get posted automatically on my instagram as well. how can I achieve that, I have been looking at facebook graph api documentation for hours now but I am very confused, any guideline on which approach should I take?
Instagram does not offer any API to post to their platform. I am afraid there is no way.
Edit: There is an option, but it is limited to IG business accounts: https://developers.facebook.com/docs/instagram-api/guides/content-publishing
Facebook Graph API:
https://developers.facebook.com/docs/graph-api/ and Instagram Graph API: https://developers.facebook.com/docs/instagram-api/
In order to post anything on Instagram, you need a creator or a Business account. Also, you need to connect Facebook and Instagram in order to post anything. That is because posting on Instagram is done indirectly through Facebook pages. See here for more info on how it can be done: https://developers.facebook.com/docs/instagram-api/overview
I am using facebook API for posting in group and pages. I dont see an endpoint where I can post on my own newsfeed. What I see is only I can share content via fb link. Does someone know where could I find the endpoint on posting on own newsfeed? Thanks.
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 request access to a facebook Page for business account using facebook marketing api
Facebook released a special website dedicated to the Marketing API:
https://www.facebookmarketingdevelopers.com/reference_app/
You can watch theses videos as well to understand how it works:
https://www.facebook.com/marketingdevelopers/videos