Reputation: 77
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
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