0

I have been trying to use fb.ui to create an unpublished post. Cant find any documentation for it. Is this possible with v2.8 ?

andyrandy
  • 72,880
  • 8
  • 113
  • 130
zeah
  • 254
  • 4
  • 7

1 Answers1

0

I don´t think you can do it with FB.ui dialogs (and scheduling is only possible for Pages anyway), but it is possible with FB.api:

const params = {
    access_token: <pageToken>,
    published: false,
    message: 'some text',
    scheduled_publish_time: <timestamp>
};

FB.api('/<pageid>/feed', params, (response) => {
    if (response && response.error) {

    } else {

    }
});
andyrandy
  • 72,880
  • 8
  • 113
  • 130
  • Im able to do it with FB.api .. but wanted to use moods and checkins that comes with Fb.ui. – zeah Nov 28 '16 at 15:44
  • did you try to add those with FB.api? At least checkin (= adding a location) should be possible. – andyrandy Nov 28 '16 at 15:57
  • fb.ui gives me all the options build right into the dialog.. tagging friends, moods, locations.. anyways looks like its not possible to use fb.ui for this. – zeah Nov 28 '16 at 21:13
  • yes, scheduling is not possible with Fb.ui. btw, scheduling is not possible for user profile walls anyway, only for pages. – andyrandy Nov 29 '16 at 07:23