Is it possible to post to pages that you are an admin for using the Facebook Javascript SDK? -


i able write on own wall not on wall of pages admin for. using code below (javascript sdk):

         fb.ui(            {              method: 'stream.publish',              message: 'getting educated facebook connect',              attachment: {                name: 'connect',                caption: 'the facebook connect javascript sdk',                description: (                  'a small javascript library allows harness ' +                  'the power of facebook, bringing user\'s identity, ' +                  'social graph , distribution power site.'                ),                href: 'http://github.com/facebook/connect-js'              },              action_links: [                { text: 'code', href: 'http://github.com/facebook/connect-js' }              ],              user_message_prompt: 'share thoughts connect',              target_id: '170500829645508',              uid: '100001920038281'            },            function(response) {              if (response && response.post_id) {                alert('post published.');              } else {                alert('post not published.');              }            }          );          } 

where target id page admin , uid account user id. when run code keep getting error message:

an invalid target specified: 170500829645508. target must page, event, or user actor can post on wall of.

am doing wrong here?

you need manage_pages extended permission this. once permission granted can query graph.facebook.com/me/accounts retrieve api token can post page's wall. check out facebook's extended permissions here: http://developers.facebook.com/docs/authentication/permissions.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -