Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I like a Facebook AppID through IPhone Application?
    primarykey
    data
    text
    <p>I am developing a iPhone application in which I want to simply 'Like' my own Facebook AppID.</p> <p>For Facebook integration I am using FBConnect and Graph API (https://github.com/facebook/facebook-ios-sdk/blob/master/README.mdown). </p> <p>After researching, I found that I was supposed to use the following method, which I attempted to implement in the "DemoAppViewController.m" of the sample code when the 'publishStream' button was selected:</p> <pre><code>NSMutableDictionary *params = [NSMutableDictionary dictionary]; //Use an empty dictionary [_facebook requestWithGraphPath:@"https://graph.facebook.com/163221793740496/likes" andParams:(NSMutableDictionary *)params andHttpMethod:@"POST" andDelegate:(id &lt;FBRequestDelegate&gt;)self]; </code></pre> <p>However, my FBRequest.m 'responseString' indicates: {"error":{"type":"GraphMethodException","message":"Unsupported post request."}}</p> <p>What am I doing wrong and how can I make this work?</p> <p>From what I understand, all I need to do is attach my accessToken to <a href="https://graph.facebook.com/163221793740496/likes" rel="nofollow">https://graph.facebook.com/163221793740496/likes</a>. What exactly does that mean, and how is it accomplished?</p> <p>Thanks in advance!</p> <p>P.S. - In case there was any confusion, my post was in reference to having a user sign into Facebook with their account login via a fb like button in the application. After the user allowed the appropriate permissions, my app would 'like' the AppID with the user's account.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload