How to make a graph API post (check Facebook) using Ionic or Angular

I have successfully added the Facebook login feature for my Ionic 3 application after Ionic docs , and I can get the necessary user profile data from the Graph API,

Now I can not understand how to add the registration option.

Facebook API chart APIs say that registration is now possible only by POSITING data with a user who has publish_actions privileges.

So something like this should work:

this.facebook.api("me/feed?place=123123123123", ["publish_actions"])

(where place is the identifier of the place on the page I want to register)

But this does not work, because the method apionly creates requests GET, and there is no way to set the request methodPOST

Also, the cordova Facebook plugin is also not similar, which supports publishing to the Graph API.

I can not find examples of examples of input code for the ionizing code or any way to do this.

Does anyone have any experience?

I have all the data necessary to fulfill this request of the Graph API - User ID, required permissions and place identifier.

Please ask if additional information is required.

+4
source share

Source: https://habr.com/ru/post/1689051/


All Articles