Is there any way in which I can initiate a profile picture upload on Facebook using their Javascript Graph API. I have looked in many places for an answer and the closest I had got was to how to set a facebook profile picture using the graph api. But the "makeprofile=1" does not seem to be working.
&makeprofile=1 seems to be deprecated.
Use the mobile link URL instead: http://m.facebook.com/photo.php?fbid=[photo-id]&prof
You'll get a screen with your picture and a button asking the user to confirm that he wants to use it as profile picture.
Source: https://stackoverflow.com/a/37480622
Related
I'm trying to find some info online on how to update my user's profile picture on the profile page in the same way that social media applications do it, i.e. by clicking on the profile picture itself and getting asked for the file upload straight away. However, all I'm finding online is options to create a form to do that job, but then it's going to be an upload button that does the job, which is not the same.
How do I get the image to be clickable, opening a file upload after I click it that would then update my model ImageField?
I am in a process of building my very first website and I came into some problems when trying to implement Facebook Share into my site.
What I am trying to accomplish is:
1) Get URL from textbox in my site.
2) Share it on Facebook.
This is the code I tried:
<center>Share in Facebook
It works with:
<center>Share in Facebook
But I need it to work with dynamic textbox text. For same URL, it works fine.
But it doesn't work with my first code example and I get this error message on Facebook Share popup:
href should represent a valid URL
This is image of the error:
Thanks, I hope I will find help here.
I am displaying profile feed posts in website using graph api. graph api call is look like this -
https://graph.facebook.com/me/feed?fields=id,from,message,story,picture,link,source...&access_token=token here
so getting data by above call, i display posts by html codes in my site.
I display profile picture by this html code -
<img class="msfb-wall-avatar" src="https://graph.facebook.com/app_scoped_profile_id/picture?type=square">
here app_scoped_profile_id i got from graph api call is different from normal profile id and is specific to the facebook application as i used that application's user token in above graph api call.
But now profile picture is not being shown, before there were no problems, so look like there were some changes in FB graph api. If i manually load above img src url in browser then i see some browser errors.So look like graph api not taking that app scoped user id to display profile pic.
So what i to do to display profile picture when displaying user profile feed posts according to any latest changes from facebook Graph Api?
I am also experiencing this problem at the moment. Some time ago I was experiencing it as well. At that time it was reported to be a bug. I think it might be a bug again this time.
See the following links for more info: Facebook graph user picture won't show on mobile devices and https://developers.facebook.com/bugs/560392384345729/
I want a user to be able to tweet images that are on my site.
First I checked out Cards but the docs say:
For photos and animated GIFs, upload the media directly with the Tweet or consider using the Twitter API to upload media.
So I check out the docs and there are ways to do this.
I can't figure out if you are able to upload images from your site using the API, but having them posted by a user's twitter account, won't all of the tweets come from whatever account I set in the script?
Is it possible to let a user upload an image from my site or will I have to use cards?
I am not able add the thumbnail in the facebook update, using javascrit. But I dont know how to add the snap or add thumbnil, the facebook bot is not picking any pic fro the app, its a ruby on rails app actually.
I am using simple technique I have not created any app or no api key and such things.
I how do I get the thumbnils ?
Kindly help me
I'm not quite sure if I understand the question... You have a Rails app and a "Like" button and when you press the like button there is no thumbnail of the web page in your facebook status?
If that's the case you shoud take a look to the Open Graph Protocol: http://developers.facebook.com/docs/opengraph/
You must use some tags in your page to provide Facebook with information about your website and one of the tags is for the image:
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>