FBDialogs presentShareDialogWithParams成功,但返回错误 [英] FBDialogs presentShareDialogWithParams succeeds but error gets returned
问题描述
我尝试使用 [FBDialogs presentShareDialogWithParams]
向Facebook发布故事。它的工作原理是,我看到这个帖子,但是在 FBSDKLog
中有一个奇怪的错误。
I attempted to use [FBDialogs presentShareDialogWithParams]
to post a story to the facebook. It works in that I see the post but I get a strange error back in the FBSDKLog
.
FBSDKLog: Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x26958c0 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ParsedJSONResponseKey={
body = {
error = {
code = 100;
message = "(#100) The parameter 'custom_events' or 'custom_events_file' is required for the 'CUSTOM_APP_EVENTS' activity";
type = OAuthException;
};
};
这是什么意思?我尝试寻找 custom_events_file
和 custom_events
无效。这是使用iOS facebook SDK 3.5
What does it mean? I tried looking for custom_events_file
and custom_events
to no avail. This is using iOS facebook SDK 3.5
推荐答案
我可以通过禁用安装洞察& 移动SDK洞察在Facebook的应用程序控制台。看来,自定义事件与Facebook分析中的应用跟踪相关。
I was able to remove this error by disabling "Install Insights" & "Mobile SDK Insights" in the app console within Facebook. It appears that Custom Events are related to App tracking within Facebook insights.
这篇关于FBDialogs presentShareDialogWithParams成功,但返回错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!