Facebook extended permissions error in Java Script -


my app wants request extended permissions if user wants use features. not able fb.ui dialog box pop up. code below (and not seem complicated):

function getpublishpermission(appid){  fb.init({ app_id:appid, cookie:true, status:true, oauth:true });  var obj = {      method: 'permissions.request',      perms: 'publish_stream',      display: 'iframe'  };  fb.ui(obj, earncallback); } 

i receive error says: "an error occurred. please try again later." have used scope instead of perms same result. appid passed correctly (same error when hardcode appid). sandbox mode switched off. missing?

it turns out not app_id, appid: fb.init({ appid:appid, cookie:true, status:true, oauth:true });


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -