Curious if the PHP Facebook SDK allows me to change only my own profile picture and cover photo. From the reading I've done I'm thinking no, but I wasn't able to find any recent, direct articles.
Any help is appreciated.
Looks like you can't actually change it, but you can get half way!
Setting Facebook Cover Photo via API
"ThereĀ“s no API support for changing user profile cover, but you can upload a photo and then redirect user to: http://www.facebook.com/profile.php?preview_cover=PHOTO_ID"
Related
I found this, but it is kinda confusing, and doesn't answer the question for me. I'm looking to upload images from my website to a Facebook page (my code works for users pages, not company pages), if there is a way to do it without having to make an application, I'd like that, but from what I've seen, that's not possible.
My code is here: http://pastebin.com/wBp1AQwG
Your link doesn't appear to go anywhere useful, I'm afraid.
Nonetheless, I'm guessing your problem here is that you need to use a Page access token not a user access token to publish to a page rather than a user feed.
See the section on Page Access Tokens at https://developers.facebook.com/docs/reference/api/page/
I've figured it out, here is a basic outline of the process for posting an image to an album that you own on a fanpage.
Get user authenticated
Get users accounts
Get albums, or create them
Post to the id of the album (ALBUM_ID/photos) with the image
It's pretty simple once I figured out the basics of the api.
I want to build an facebook application using which i will show a advertisement video shot by advertisement company on the facebook page and in that video at specific place i want to show the logged user's profile pic.
Explaining more...it will be an live video (not the one created by graphics) where one or two place i will show the logged user profile picture for example if two people are talking and one is having a phone then at that phone i will show logged user profile pic.
can any body please give me any idea how i can achieve this ?
i know following things.
making a facebook application
embedding a video in it.
fetching the logged in user information like profile pic and all.
I need help with following.
How to edit a video and show the fetched profile picture in the particular place of that video. ??
thanks,
php cant edit videos. Maybe you can try to run an commandline programm from php like avisynth or ffmpeg to genreate the video withou php.
Twitter has launched new profile design
there is a big header image like facebook cover image
what i want to know is if there is any way i can update user's header image using twitter api??
If you look at the Network log while updating your header image in your Twitter account, you will see a call to 'upload_profile_header' went saving the new header image.
Look at the request payload to get the parameters needed.
authenticity_token=...&fileData=...&fileName=...&height=260&offsetLeft=0&offsetTop=0&uploadType=header&width=520.
Theoretically if you were gonna POST to account/upload_profile_header with all the parameters listed above this should be working.
I haven't tested this concept yet and it is just my suggestion.
Let me know how it went
There doesn't seem to be from looking at the API documentation, no: https://dev.twitter.com/docs/api/1.1#112
It wouldn't surprise me if they don't either. Facebook don't allow third-party apps to set cover photos as it can lead to apps essentially "hijacking" user profiles for their own promotion gain.
I am reading the Facebook API and I am google'ing for a method or function to be able to set an image as profile picture.
I need to know if something like this is possible at all.
In the old REST Api you find a note, that it isn't possible to upload a picture into the users profile pic album. But.. is this step required for my transaction?
I would like to know which methods/function I have to take and/or an advice how to code.
(trivial workflow of app: user visits fb-app, user clicks on button, user gets an request-alert to allow action, user gets manipulated picture as own profile picture)
thanks in advance
chris
Sorry, but not is possible. If you take a look here:
http://developers.facebook.com/docs/api
At the "Publishing" section the /PROFILE_ID/picture is not writable even if you can upload a photo to an album.
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/