[英]Facebook Integration, iPhone
Facebook is not integrating with my application. Facebook 未与我的应用程序集成。 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.
即使示例代码也不起作用 facebook 与 iOS 有一些问题,因为 developer.facebook 上的文档和示例代码也没有找到。
Try this new facebook grpah api试试这个新的 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];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.