Rahul Nagpal
Rahul Nagpal

Reputation: 77

Facebook Integration, iPhone

Facebook is not integrating with my application. even the sample codes are not working Is facebook having some problem with iOS because the documentation and sample codes on developer.facebook also not found.

Upvotes: 0

Views: 514

Answers (2)

iProgrammer
iProgrammer

Reputation: 3107

Try this new facebook grpah api

code for login on any button

fbGraph.accessToken = nil;
    NSHTTPCookie *cookie;
    NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
    for (cookie in [storage cookies])
    {
        NSString* domainName = [cookie domain];
        NSRange domainRange = [domainName rangeOfString:@"facebook"];
        if(domainRange.length > 0)
        {
            [storage deleteCookie:cookie];
        }

    }




    [self loginButtonPressed:nil];

Upvotes: 2

ArunGJ
ArunGJ

Reputation: 2683

use this sharekit

it can integrate facebook, twitter, and much more apis

Upvotes: 4

Related Questions