本文介绍了我的朋友看不到照片,但照片在我的时间轴上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以从我的应用中发送照片,并且照片会在时间轴上更新,但我的朋友都没有看到.我在应用程序plist上尝试了其他示例应用程序的密码,并尝试发送照片.它的魅力.谁能说出FB机密引脚有什么问题吗?我授予了扩展权限:publish_stream photo_upload
From my app I can send the photos and it's updated on the timeline but none of my friend get to see it. I tried the secret code of other sample apps on my app plist and tried sending the photo. It works charm. Could anyone tell what could be wrong with the FB secret pin? I gave permission as Extended Permissions: publish_stream photo_upload
[self performPublishAction:^{
[FBRequestConnection startForUploadPhoto:image
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
textView.text = result[@"id"];
NSLog(@"Posted : %@", result);
post_Photo.enabled = TRUE;
}
else
NSLog(@"Error : %@", error);
}];
}];
- (void) performPublishAction:(void (^)(void)) action {
if ([FBSession.activeSession.permissions indexOfObject:@"publish_stream"] == NSNotFound) {
[FBSession.activeSession requestNewPublishPermissions:@[@"publish_stream"]
defaultAudience:FBSessionDefaultAudienceFriends
completionHandler:^(FBSession *session, NSError *error) {
if (!error) {
action();
}
//For this example, ignore errors (such as if user cancels).
}];
} else {
action();
}
}
推荐答案
LOL.我没有将应用程序设置从启用沙箱"更改为禁用",因此仅适用于开发团队.
LOL. I didn't change the app settings from Sandboxing enabled to disabled, so it was only available for development team.
这篇关于我的朋友看不到照片,但照片在我的时间轴上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!