facebook.request didn't work on android

i use facebook plugin

my code

it work great on ios,but didn’t work on android

 if platformName== "iPhone OS" then facebook.request( "me/feed", "POST", { message="I just got ",link= "https://itunes.apple.com/us/app/id97091"} ) elseif platformName=="Android" then facebook.request( "me/feed", "POST", { message="I just got ",link= "https://play.google.com/store/apps/details?id=idxxxx"} ) else end

but if i change code like below,it work on android

it only cange request to showDialog

but i want to use facebook.request.

any idea?

is it still this problem?

Facebook has changed it’s policy.  Dialogs cannot pre-fill the message text.  The user is the only one who can fill that out.  This is expected behavior.

 if platformName== "iPhone OS" then facebook.request( "me/feed", "POST", { message="I just got ",link= "https://itunes.apple.com/us/app/id97091"} ) elseif platformName=="Android" then facebook.showDialog( "feed", {link= "https://play.google.com/store/apps/details?id=idxxxx" } ) else end

Yes, Facebook does now allow dialogs with pre-filled out text.  You can only provide a URL.   If you new facebook.request(), you have to have your app setup properly in the Facebook developer portal.  You have to (since you’re writing to a timeline) submit your app for review to Facebook.   You have to have your keyhash correct for Android and you have to have a double login, asking for simple permissions first, then when you’re ready to post, ask for the write permissions.   Facebook does not make this easy.

Rob

thanks,i don’t want to review,so i use dialogs without pre-filled out text ,just a URL.

Yes, Facebook does now allow dialogs with pre-filled out text.  You can only provide a URL.   If you new facebook.request(), you have to have your app setup properly in the Facebook developer portal.  You have to (since you’re writing to a timeline) submit your app for review to Facebook.   You have to have your keyhash correct for Android and you have to have a double login, asking for simple permissions first, then when you’re ready to post, ask for the write permissions.   Facebook does not make this easy.

Rob

thanks,i don’t want to review,so i use dialogs without pre-filled out text ,just a URL.