Вопрос

How can i make "Like" action for Facebook post in iOS? I receive newsfeed from FB, and i need make Like and Comment Buttons. I use graph api, but without Facebook SDK. For "Like" action i tried this. Using POST i send to

https://graph.facebook.com/[User FB
ID]/og.likes parameters access_token and like url

But i receive an error:

{ error =     {
    code = 240;
    message = "(#240) Requires a valid user to be specified (either via
    the session or via the API parameter for specifying the user.";
    type = OAuthException; }; }

The permissions:

FacebookPermissions = @"publish_stream,email,read_mailbox,user_online_presence,
friends_online_presence,user_about_me,share_item,read_stream,read_page_mailboxes,
read_friendlists,read_insights,publish_actions,user_likes,friends_likes";

How can i fix this?

Это было полезно?
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top