Facebook doesn't post

  • Bug Me Games
    Likes 0

    Problem Description

    I cannot send a post to facebook, I only get a blank screen with my info at the top...it does not show what I told it to post. The post button does nothing, and the cancel button seems to work correctly. Here is my code:

    if (data.name == "twitter_button"){
       SonarCocosHelper::Twitter::Tweet("Another awesome triumph for me!", "", "");
    } else if (data.name == "facebook_button"){
       SonarCocosHelper::Facebook::Share("", "", "Another awesome triumph for me!", "", "");
    }

    Twitter works correctly.

     

     

     

     

  • Bug Me Games
    Likes 0

    Sorry, the actual problem is that the text for the share does not show up in the facebook post panel. So, if you touch in it and then type a new message the post button will work. Adding an image works as expected.

    However, not being able to set some initial text in the description is still a bug.

  • Sonar Systems admin
    Likes 0

    What platform?

  • Bug Me Games
    Likes 0

    No text shows up on iOS. I have not tried it on Android.

  • Sonar Systems admin
    Likes 0

    What device?

  • Bug Me Games
    Likes 0

    iPad Mini 2 running 9.2.1.

  • Sonar Systems admin
    Likes 0

    Does it work in the simulator on different devices?

  • Bug Me Games
    Likes 0

    It seems to work correctly in the simulator, and I see now that the problem is that the dialog is set up different. On the iPad Mini 2 there is a long bar across the top of the dialog with my username and picture on the left and a chevron on the right. (Clicking this lets you choose if you want it to be public or private.) Right below is where you can add your text and the box is empty. Below that is the middle of my image that is stretched across the entire width of the dialog. And at the bottom are some buttons for location...etc.

    In the simulator the box looks like the one shown in your how-to video. I don’t know why they are different.

     

     

  • Bug Me Games
    Likes 0

    Here are some screenshots so you can see what I am talking about.

    First is the way I believe it shoul look, this is taken in the simulator.

    The second is taken on my device, the iPad Mini 2 and is a completely different dialog.

     

    I hope this helps. Let me know if you know of any way to always show the normal dialog. I tried switching items in the iPad preferences but nothing seemed to change.

  • Sonar Systems admin
    Likes 0

    Are they same iOS version?

  • Bug Me Games
    Likes 0

    Yes, they are all running in iOS 9.3.

  • Bug Me Games
    Likes 1

    I have found that the problem is that Facebook no longer allows you to pre-fill the text for a user post. The latest versions of iOS do not accept the text coming from “initialText” in the SLComposeViewController.

    Here is the policy URL:

    https://developers.facebook.com/docs/apps/review/prefill

    The shape of the dialog box on the iPad Mini (shown above) was because I installed the Facebook app from the Apple settings page. When I uninstalled it, and then set my login credentials without installing any Facebook app, I get the dialog that looks like the first photo above (from the simulator).

     


  • Sonar Systems admin
    Likes 0

    That sucks :(

Login to reply