It's possible to use the new Facebook PHP SDK without asking the user for permissions?
I just want to show some photo albums from a public page.
Well, if the page is public, and the photo albums are public too, you should be able to get them with the Facebook API.
Have a look at the Facebook API documentation for more informations.
Here's a small example of what you could get on the FacebookDevelopers page, for example : https://developers.facebook.com/tools/explorer?method=GET&path=FacebookDevelopers%2Falbums&version=v2.0
Related
How can I show website activity on the Facebook timeline?
I integrated Facebook API and Facebook Connect. Now, if any new user uploads a video on the website then I want to display this activity on the Facebook log. What function of Facebook API can I use for this?
You should use Open Graph Actions and Objects. I recommend you create:
A video object
An "uploaded" action as well as utilising the built-in "watch" action
There is a full and more than helpful tutorial right here. Things to consider:
You need to request publish_actions permission from users of your website, if you are already using Facebook Login, then this is a simple matter of adding it to the list of Permissions that you are requesting
Publish an uploaded action for every new video uploaded, make sure you get explicit consent from the user to do so, so that you can use the fb:explicitly_shared parameter.
Use the watch action for any videos that people watch on your website.
Can you please have a look to this URL
http://developers.facebook.com/docs/reference/rest/photos.upload/
I need to have a working example, how can I use this api to upload a photo to my facebook profile.
Actually I have a php site from where I want to allow users to upload photo to their facebook profile.
Thank you
The link you posted refers to an outdated approach to FB API. It's better to use the Graph API in conjunction with the latest PHP SDK.
http://developers.facebook.com/docs/reference/api/
https://github.com/facebook/php-sdk
here's a reference to the photo object methods
http://developers.facebook.com/docs/reference/api/photo/
Here's a fairly recent example from the facebook developers blog:
http://developers.facebook.com/blog/post/498/
i want to display facebook friends on my website and i want to use facebook graph api for that,
please
Thanks
Prakash
Facebook Graph API with PHP connection
This tutorial might help: Facebook PHP SDK
It includes example as well.
Generate an access token for yourself by going to https://developers.facebook.com/tools/explorer and then you may be able to retrieve your friends by accessing https://graph.facebook.com/_YOUR_USER_ID_/friends?access_token=xx and then the profile images can be retrieved using the following graph API call - https://graph.facebook.com/_FRIEND_PROFILE_ID_/picture?type=square
Of course, for more details, the Facebook Documentation (https://developers.facebook.com/docs/) is where you go to.
i'm trying to get a facebook page feeds using graph URL. but i want to get only the owner data ... i don't want anything not from the owner. i can do that using PHP. but i'm asking if i can do that using the same graph request.
Thanks
Just use /posts instead of /feed
Is it possible to change someone's profile picture via the Facebook API?
The Graph API discusses POSTing a picture to an account but I see nothing related to the direct altering of a user account. I suspect they only recognize GET requests under their RESTful API (for the user area). Thus, a no.
That's just information gleaned from the Facebook API docs, however. I could be missing something though.
not possible: Facebook API/PHP - Is it possible to change a user's profile image via FB Graph API?, and also my own experience.
This feature is not possible, period. Although you can upload an image to the Graph API and then redirect the user to the permalink of that post :)
It's possible by adding makeprofile=1 at the end of uploaded photo url. You can find example (PHP) and demo here: http://4rapiddev.com/facebook-graph-api/php-change-facebook-profile-picture-with-graph-api/