iOS Facebook SDK MessageDialog error 202

前端 未结 4 830
余生分开走
余生分开走 2021-02-06 02:43

I am trying to set up Facebook sharing with FBSDK in my iOS app.

I have been reading the documentation here, and currently have

[FBSDKShareDialog showF         


        
4条回答
  •  情话喂你
    2021-02-06 03:05

    Note: This fits more as a comment, but I don't have enough reputation yet to post comments

    I get the same error, both Facebook and messenger are updated.

    I checked my permissions with

    [[FBSDKAccessToken currentAccessToken] permissions]
    

    and I think I have enough:

    "contact_email",
    "publish_stream",
    "user_likes",
    "publish_checkins",
    "video_upload",
    "create_note",
    "basic_info",
    "publish_actions",
    "public_profile",
    "photo_upload",
    "status_update",
    email,
    "user_friends",
    "share_item"
    

    I tried the same way as OP, and also I tried that:

    FBSDKMessageDialog *messageDialog = [[FBSDKMessageDialog alloc] init];
    [messageDialog setShareContent:content];
    messageDialog.delegate = self;
    
    if ([messageDialog canShow]) {
        [messageDialog show];        
    }
    

    [messageDialog canShow] returns NO, and the delegate methods catch the fail with the 202 error described by the OP.

    I tried using the FBSDKSendButton, and doesn't seem to work either.

    On the other hand, FBSDKShareDialog works perfectly...

    I hope this helps to solve the issue.

提交回复
热议问题