使用Open Graph的iOS Facebook发布失败-错误代码102 [英] iOS Facebook posting using Open Graph fails - error Code 102

查看:157
本文介绍了使用Open Graph的iOS Facebook发布失败-错误代码102的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此示例将我的故事发布到Facebook.我有我自己的Open Graph对象,但故事.

当我已经登录到iPhone的本机FB应用程序时,此方法效果很好.该登录名是管理我的FB应用程序的登录名.我已验证所有内容,包括捆绑包ID,URL方案,应用商店ID等.

一段时间成功发布后,我开始观察到我的帖子已成功发布(响应代码),但未出现在FB时间轴中.我在时间轴上访问了观众,依此类推,但无济于事.

然后,我在设备FB应用上切换了用户,并且开始收到错误代码102.

除了以下内容外,回答不多:

Error Domain=com.facebook.Facebook.platform Code=102
FBAPIErrorDomain error 3506

我从本文档中发现 这与API会话有关-我在应用内不做任何操作来获取一个,并且我不知道是否应该使用上面的示例代码.

我该怎么做才能确保我在发布时始终保持有效的Facebook会话?

解决方案

答案与李明的建议相同,并且已经this example to post my story to facebook. I have my own Open Graph objects, stories though.

This worked well when I had existing login into my iPhone's native FB app. This login was the one who administers my FB app. I have everything verified including bundle ID, URL scheme, app store ID and so on.

After some time successfully posting, I started observing that my posts were successfully getting posted (response code) but not appearing in FB timeline. I played with timeline audience access and so on, but to no avail.

Then I switched the user on device FB app, and I started getting error code 102.

The response doesn't say much, except this:

Error Domain=com.facebook.Facebook.platform Code=102
FBAPIErrorDomain error 3506

I figure from this documentation that this has something to do with API Session - I am doing nothing inside my app to obtain one, and I don't know if I should, if I am using the above example code.

What should I do to ensure I always have valid Facebook session while I post?

解决方案

The answer to this is same as what Ming Li suggested, and has been derived from this.

Before FB app approval by Facebook, one needs to add test users to perform actions related to permissions.

这篇关于使用Open Graph的iOS Facebook发布失败-错误代码102的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆