Search Unity

Problem using Facebook FeedShare only on iOS

Discussion in 'iOS and tvOS' started by rankornfeld, Dec 13, 2017.

  1. rankornfeld

    rankornfeld

    Joined:
    Sep 29, 2016
    Posts:
    57
    I am using the latest Facebook Unity SDK, and using the FeedShare method to post to the user's feed using a Facebook popup.

    Code (CSharp):
    1. FB.FeedShare (link: new Uri (ogURL),callback:(IShareResult result)=>
    2.                 {
    3.                     if(ShareCompleted!=null)
    4.                     {
    5.                         if (!string.IsNullOrEmpty(result.Error))
    6.                             ShareCompleted(true);
    7.                         else
    8.                             ShareCompleted(false);
    9.                     }
    10.                 });
    ogURL points to a open graph page, with OG meta data for the content to share.

    Everything works fine on Android and WebGL, but on iOS I am getting the following error from FB:
    The parameter 'href' or 'media' is required

    All other facebook related actions (login, apprequests, friends list) work great, so it's probably not related to SDK initialization.

    Any ideas what might be wrong here?
     
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I've never used that method. But, if it looks like a bug try reporting it here.