Facebook - posting to the new "what you're doing"-thing - facebook

So Facebook introduced a new feature allowing you to include not only links/pictures/locations to a post, but also a moods, music, videogames etc.
Does the Graph API allow you to post these somehow? As far as I can see, the post end point only supports "link"|"photo"|"video" -> https://developers.facebook.com/docs/reference/api/post/

The feature to express actions in the status composer is still being rolled out to the public.
The Graph API does not allow you to post these at the moment.
It is built off Open Graph actions (e.g. feeling) and objects (e.g. happy), so I imagine this will come out in the later months.

Related

Instagram API deprecation 2020

I'm building an app that has the user log in through instagram, it then reads their feed and uses that information for the app. Instagram has a page that says their API's will be deprecated in 2020 but some things will still work. It's not straightforward as to what is being deprecated and what isn't, and I have not found any way to contact them directly. Does anyone know if the following URL will continue working, and if not if this type of app will even be viable in the future? Why is IG and Facebook becoming much more closed platforms to 3rd party integrations?
https://api.instagram.com/v1/users/self/media/recent/
Deprecation notice:
https://www.instagram.com/developer/
The legacy Instagram API - https://www.instagram.com/developer/ will be deprecated in favor of Instagram Graph API provided by Facebook - https://developers.facebook.com/docs/instagram-api
In order to use https://api.instagram.com/v1/users/self/media/recent/ this endpoint you need Basic permission. As documentation says, it will be deprecated in early 2020, which means that the legacy API will be most probably shut down, since there will be no more capabilities to request for.
You should most definitely start building your app with Graph API. Please keep in mind that it takes some time before you can go live with your app. It requires couple of things like Business Verification, review of requested permissions in App review and it can take some time to be able to go live.
Please keep in mind that the Graph API works only for Instagram Business type of accounts. You can't use it for regular accounts at the moment. It is not clear yet if it will be available for all accounts, but most probably it will be in the future. It was the same as with deprecating Public Content permission on Instagram legacy API. They added similar functionality in Graph API.
If you plan to support all users, you will also have to apply for Basic capability in legacy API. In other words, you need to support both Instagram API and Instagram Graph API if you plan to target all Instagram users, both regulars and Business profiles.
Another thing to keep in mind is that you can't really report bugs or get any help from legacy Instagram API. If you will find the bug you can't report it as they do not accept it due to deprecation.
So start building with Instagram Graph API, once you will be good to go, try to add Instagram legacy API support. If everything will be fine and Facebook will add support for legacy accounts, your Graph API should easily take over Instagram legacy API functionality.
Most probably the reason why they are tightening the integrations and makes it harder for the developers is user privacy. They do not want to have yet another incident like Cambridge Analytica for instance.
It does not make sense to build something with the old API, that old API URL will definitely stop working (with all the old api.instagram.com endpoints). There is a new API though: https://developers.facebook.com/products/instagram/

Why Facebook Graph API doesn't list all public events for a page?

There're lots of events for this venue:
https://www.facebook.com/pg/ClubRoxyPrague/events/
However when requesting with Graph API we only get a few. Here's link to Graph API explorer:
https://developers.facebook.com/tools/explorer?method=GET&path=ClubRoxyPrague%2Fevents&version=v2.12
Until recently this worked well for us. Maybe it's data access restrictions Facebook announced few days ago: https://newsroom.fb.com/news/2018/04/restricting-data-access/
Why the API returns only some events? Is there any way to fetch all public events hosted by a certain page?
Due to the breaking data access changes you mentioned, it already wasn't possible to access events directly (also see: Unsupported get request in get Facebook event).
It seems like your specific issue is a logical consequence of that decision (although the /{page-id}/events was still available up to today, I personally already found it pretty strange that events were still accessible indirectly).

Facebook Graph API: Add a reaction to a post or remove a reaction from a post

I'm trying to create or delete reactions (LIKE, LOVE, HAHA, WOW, SAD, AGRY) with the Facebook Graph API v2.8. But there seems to be no way to do it (documentation link):
Creating
You can't perform this operation on this endpoint.
Deleting
You can't perform this operation on this endpoint.
Is there really no way to do it? Does anyone know if it's planned for a new version of the API like v2.9?
As you can read in the API docs, there is no way to POST reactions as of now. If it will be available in future API versions is unclear, only Facebook knows that.

The *NEW* Facebook 'Post Search API'

This may look like an old question but is actually a new one (in other words, I'm aware they deprecated the "old" Post Search).
According to this source Facebook has now made it possible to search for Posts using the standard "Facebook Search" and I'm wondering if can I access this through the Graph API (and how)? Also where is the source of the article I mentioned? Where does Facebook announce this feature?
Thank you!
The Graph Search is not available via the API, so there is no possibility to use the new Post Search - at least not right now. But since they deprecated the Public Post Search, i donĀ“t think there are any plans to implement it again.

How do I publish an activity on facebook using the Graph API

The old Facebook Legacy REST API had a function dashboard.publishActivity, however the new Graph API only allows messages to be posted on /me/feed.
Is there a way to send activities using the Graph API?
As mentioned in http://developers.facebook.com/blog/post/552/ Facebook "have removed the section which displayed the News that developers published via the Dashboard APIs in the Games Dashboard". Therefore the dashboard.publishActivity function no longer provides any useful functionality. My recommendation is to switch to either using stream posts or to Requests 2.0, as these will provide the same sort of distribution that you're looking for.