I've managed to automattically add a post to my profile using /me/feed/ , but how can I add a post to a page created within my account ?
they say " /[page id]/feed/ " how can I find the right page ID ? Do I need to use another method to post to my facebook page ?
I've searched on how to get the page ID, I've obtained and used this ID: 123397591098452 for page: http://www.facebook.com/pages/Siteique/123397591098452 but the post is not working.
Note: the application has all the right privileges.
This is the way i`m sending the post:
$facebook->api('/me/feed/','POST',$post);
Try logging into your app under the account the the page belongs to, then turn the code into an oauth token, and then use that oauth token with your request. Good Luck
Related
I have a page on facebook and i want to be able to update my page when someone post a classifieds ad on my website.
currently the website in on my localhost [wamp] and am testing it from there
i have tried the solutions provided in the following websites but none of them seems to work
http://360percents.com/posts/php-curl-status-update-working-example/
http://www.barattalo.it/2010/03/01/php-curl-bot-to-update-facebook-status/
All am looking for is simple function to update my facebook page as such
Update_status(email,password,status);
1) You need a Facebook app.
2) You then need a long lived access token for your Facebook page.
3) Using that access token you can post to your page. [ You can have a cron job running that checks whether any user has posted any new content, if yes then use the access token to post to page ]
I need them to import their images into my site.
In their documentation they authenticate a use with a response code by the following url
https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code
The above URL gives me only a code not all the images. And this is not my target. When a user come to my site and click on the Instagram login button with the user name and password then I need to import all the images of that user into my site.
Is that possible?
Follow this until you got yourself an Access Token: http://instagram.com/developer/authentication/
Once you got that, you can call https://api.instagram.com/v1/users/self/media/recent?access_token=YOURACCESSTOKEN
This will return you a JSON-Result of the newest Images of the User. Inside the pagination element, you will find a URL, that you can call to request the next Set of Images.
For more info on the parameters have a look at http://instagram.com/developer/endpoints/users/
A great way to get familiar with the API is to play around with the API console: http://instagram.com/developer/api-console/
I have a problem with cross-posting to Facebook. I can post some info to my personal wall (used parsing or Facebook API), but I need to post to the page of a group (ex: facebook.com/pages/$Pagename/$PageId ). (I am manager on this group and can post manually, but need the same functionality automatically from my site.)
And I have errors each time I try to do the posting automatically to my own group:(
1) When I use parsing I get message 'The post could not be shared.'
(from m.facebook.com/sharer.php?error=1&_rdr )
2) When I use parsing and send post-data through m.facebook.com/a/home.php?refid=$NumberID
I can post the message from the group page. But if the message contains a link, it is posted on behalf of my profile, but I want to make a post from the group page with link on my site.
3) When I make posting through Facebook API -- I get the error (#200) - "The user hasn't authorized the application to perform this action"
I make server authentication. And I want make this without permissions query of the current user (therefore tried parsing).
again:
I can update own(!) status through this three methods (with link too). I need update profile of my page (message with link).
Is it possible?
Thanks in advance.
I have created my fan page using Page Tab.
Now I want to display visitor Full Name on that page.
Example : Hello Fullname
It's possible without authentication?
I suggest using the Javascript SDK to achieve this, here's the documentation
... and in answer to your second question, you'll need to get authorisation of use user for your app to make any Graph API request.
You'll need to get the user's name by doing an API request to /me?fields=name get the username.
i use this code to authorize me with my app
https://graph.facebook.com/oauth/authorize?client_id=myappid&scope=publish_stream,offline_access,manage_pages&method=post&redirect_uri=http://www.site.com/indexold.html
i get the access token and i use this to do the Impersonation trick
https://graph.facebook.com/oauth/access_token?client_id=myappid&client_secret=myappsecret&redirect_uri=http://www.poemsofloveapp.com/indexold.html
lastly i use this to post to my page ... not the app page but a page i have created
https://graph.facebook.com/mypageid/feed?access_token=1234|asdasdasdasd&message=hello%20world&method=post
the post is successful but it is shown as i have posted it . i want the profile picture of the group to be shown next to the post is this possible? instead mine is shown next to the post!
What you are looking for is called impersonation in facebook graph api terminology.
Check here
And, also here