Request access to a facebook Page using facebook marketing api - facebook

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

Related

post to instagram and facebook using api

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

Search recent media and comment via Instagram API and Graph API

I want to build an app where the app user can from within the app
search Instagram's most recent media by a search term (Hashtag-Search)
post comments to Instagram posts
For searching Instagram the Graph API can't be used, because it doesn't has such capability. Therefore I need to use the old Instagram API, correct? But Instagram states "The Instagram Graph API is Now Available to All Developers. For Non-Business Instagram Accounts please continue to use the existing Instagram Platform API". The users of my platform have business accounts which I need for posting comments via the Graph API.
Do I have to use the Instagram API for searches by the app users (1.) and the Graph API for posting comments(2.)?
Is there another way to search for Instagram media which is not against Instagram policies?
Yes, You need to use both APIs; in other words, have to have access token for both apps just for the same Instagram account, doing oauth handshake to each API's authentication.
Also to note - for your first requirement: Search media by hashtags in Instagram API, you need your app to have public_content scope; which Instagram no longer approves to new apps. So, unless you have an oauth app already with this scope for Instagram API; most likely it wouldn't be possible to use developer apis for search.
For limited tag search you can use public web api:
https://www.instagram.com/explore/tags/{tagName}/?__a=1
for example: https://www.instagram.com/explore/tags/apple/?__a=1
This is just for recent media - I guess, this API does not guarantee all media.
This is no longer correct.
The graph API has the endpoint ig_hashtag_search, which will find the ID of the hashtag. You can then use it to search for media on endpoints recent_media and top_media.

Publishing visitor posts through Graph API as a Facebook Page admin

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?

Access user's news feeds via Facebook Graph API

Pacific controls systems is developing a web application which includes gadget. we have a requirement to show a user's news feeds in a gadget. This requirement could be fulfilled with "me/home" Facebook API endpoint but this endpoint is deprecated right now.
Facebook API documentation redirect developers to use "me/feed" instead "me/home". To get access to user's news feeds we need "read_stream" permission. But according to Facebook support forum, this permission only be granted to apps which aims on platforms where Facebook is not already available.
Is there any workaround available to fulfill our requirement?.
read_stream does not exist anymore since a very long time. You can use user_posts instead, just keep in mind that you will not get all posts. Detailed information can be found in the changelog: https://developers.facebook.com/docs/apps/changelog#v2_3
Possible feed endpoints are listed in the API reference: https://developers.facebook.com/docs/graph-api/reference/v2.5/user/feed
Usage of user_posts has to get reviewed by Facebook before it can be used for users without a role in the App, it is called "Login Review": https://developers.facebook.com/docs/facebook-login/review

How to post in facebook fanpage automatically from my website?

How to post in facebook fanpage automatically from my website ?
for example when i update new post in my website and i need to post in facebook fan page automatically....
I believe Facebook offers a certain number of APIs which would allow you to integrate Facebook into your own website to some degree; you can always try their dev centre.As far as I know, however, you can only post to Facebook through social networks like Twitter (see: linking a Twitter account to Facebook), or through Facebook apps you've developed yourself.
You need to create facebook app and use the app secret key and and API key in facebook SDK
script for automatic posting. for more details click the following link. I think this may help you. http://www.damnsemicolon.com/php/auto-post-facebook-with-facebook-sdk