当我尝试在我的应用程序中发布到Facebook时,我收到错误:请登录您需要登录Facebook应用程序才能分享这张照片。
我登录Facebook应用程序以及通过设置登录。
我已经在模拟器上测试了发布,它运行正常。当我在我的设备上测试时,我遇到了问题。
我已阅读其他有关此问题的帖子。据说它已经在Facebook上报道了。
我只是想知道其他人的facebook发布是否有效,以及我是否可以采取任何特殊措施来纠正我的问题。
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]){
//Present twiter message box
SLComposeViewController *facebook = [[SLComposeViewController alloc] init];
facebook = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
//set the initial text for tweet
[facebook setInitialText:defaultPost];
[facebook addURL:[NSURL URLWithString:@"http://bit.do/flappyghost"]];
[facebook addImage:[UIImage imageNamed:@"appIcon.png"]];
//present viewcontroller
[self presentViewController:facebook animated:YES completion:nil];
} else {
//handle the error if twitter is not available
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"No Facebook Account is set up on this device!" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[alert show];
}
答案 0 :(得分:0)
我不太清楚这里的问题,但添加一个完成处理程序让它对我有用:
pygame.whl is not a valid wheel filename. Storing debug log for failure in C:\Users\Hamsa\pip\pip.log