Is there any kind of metadata in photos that Facebook processes that could be used to figure out if a photo originated from Facebook?
For example, is there any data I could extract from a resized jpg file downloaded from Facebook using ImageMagick or some other tool?
I don't see any way to do this right now other than to guess by filename (which I don't have in this case) or by dimensions.
AFAICS there is no way to discover any special metadata or EXIF data in photos that are downloaded from Facebook.
'Originated from Facebook' (your expression) in any way is wrongly stated. People upload lots of stuff to Facebook, but that doesn't mean it originates from there...
If you can provide any sample of fotos you are thinking of, one could start investigating a bit closer....
Related
I'm stuck with this problem for several weeks now and will try to give a short and detailed explanation below:
Situation
Users visiting the websites and has the option to generate an image with the GD-library. So every users generated a personal image. Simple... until now. After generating the image, the user gets the option to share this image to Facebook. This is done via the OpenGraph protocol.
What's working (Yeah!)
Generating the image is working perfectly fine. Sharing something to Facebook is working also.
Problem
Although the following code is used on sharing the image (fbrefresh=CAN_BE_ANYTHING). FB stills pulls an old image. Sometimes this is a really old image, sometimes it's a more current generated image. But never the just generated image.
And now?
As said I've already tried the fbrefresh=CAN_BE_ANYTHING. Also in de debug tool the right image isn't showing up, but this is probably because the generated image has an unique ID generated from the users cookie. So this id is only usable when the users clicks on generate and after that shares the generated image.
Is there any example on the internet that uses the same sort of strategy and is working? I've searched half the internet and didn't found it yet it's becoming more and more frustrating.
After generating the image, the user gets the option to share this image to Facebook. This is done via the OpenGraph protocol.
What exactly do you mean by the latter? Are you just uploading that image to the user’s wall/one of their albums, or are you publishing an Open Graph object with a user-generated photo attached? (Btw., user-generated photo is meant literally for OG actions – you should only do it with photos that the user has taken using f.e. their mobile phone camera while they where undertaking the action. I doubt if a GDlib-generated image fits into that description.)
Although the following code is used on sharing the image (fbrefresh=CAN_BE_ANYTHING). FB stills pulls an old image.
And by “pull” you mean what exactly, again? Do you upload the photo as an HTTP POST upload, do you upload it by URL, did you specify it as og:image for an OG object, or do you pass it as user-generated photo while publishing an action?
Now, usually the easiest way for resources referenced by a URL to get properly refreshed by the requesting client, is to attach a different value to the query string/as a GET parameter – f.e. the current unix timestamp: …/image.php?1984372634 or …/image.php?foo=bar&forcerefresh=1984372634
Since this value changes every second, it makes each of those URLs a different URL, and the requesting client absolutely has no choice but to request that resource, because he can not have it in its cache already.
Can I use Facebook Graph API to download my full Facebook data? I've tried Graph API Explorer and I can only see all of them, but independently. Is it possible to get all the data in just one request or one json structure? and is it possible to include all of my friends data too?
My friend did show me a json file that contains such data and it's quite a big file(480Mb uncompressed, 48Mb compressed). Apparently, I can't contact her now for more details. Is it possible to this? If I can't, can I assume that she downloaded her data long before Facebook changed their privacy agreement?
you can also use netvizz an app in facebook itself.It gives you the whole network in .gdf format .
Then you can analyze it in gephi(its just another way around
I am trying to get some viral marketing with my page by alowing people to share a product with the product's image. This is a normal usecase (cliche even) however the image source is Adobe's Scene7. I have used the debugger tool facebook provides but the best they can tell me is that "The image referenced by the url of og:image tag could not be downloaded." I understand that Scene7 urls are very complex and there is a reasonable chance that this is what facebook is choking on but is there anyway around this limitation?
I cant provide an actual url (trade secrets, NDA, etc...) but the urls we are dealing with resemble http://s7d4.scene7.com/ir/render/company/product?fmt=png&resmode=sharp2&wid=350&obj=scr&show&obj=cc&decal&src=is{company/style?$text1=H&$name1=namelong&$color1=Blue}&res=150&show
If the URL isn't publicly available (ie: I open a freshly installed browser and am able to see your link) - our scraper won't be able to see that image either. I don't think there's any work around, given the details you shared, but if a thumbnail is ok from a legal point of view (a thumbnail would end up on Facebook either way), you could use public URLs for thumbnails of the images of your products.
It turns out the problem is that there is some automatic encoding occurring with the url that is not working with scene 7.
In my iphone app,I want to let the user upload an image to his facebook photo Album and publish a story at the same time.The story's media field contains the uploaded image's url.I successly uploaded the photo and got the result's "link" and "src_small" property.But when I use FBStreamDialog to publish the story,I got:
(source: sinaimg.cn)
At last,I find this:http://developers.facebook.com/live_status#msg_625,it says:
We no longer allow stream stories to contain images that are hosted on the fbcdn.net domain. The images associated with these URLs aren't always optimized for stream stories and occasionally resulted in errors, leading to a poor user experience. Make sure your stream attachments don't reference images with this domain. You should host the images locally.
It seems that I can't finish my job,What's your solution? thanks in advance!
you can't use that picture or the picture from facebook itself
you can upload the picture on other servers or upload it to online photo sharing like picasa
I got this functionality to work with ShareKit - it's really good:
http://www.getsharekit.com/
It's also open source, so you can see how they do it inside...
Good luck!
So what I am trying to do is post an image that has been created by a user on an iphone into that users newsfeed.
The functionality I am having a hard time understanding if it is possible:
Can I pass a local NSURL (or URL?)(to a png file that lives in the documents folder) through a JSON string and onto Facebook?
i want to mimic the action of a user going to his/her facebook page, clicking into the textfield for their newsfeeld, uploading an image by clicking the "photos" icon and selecting an image from a local disk and uploading it. I would also like to add some text into the post optionally.
I'm just getting started with the Facebook api and it seems pretty tough right now, any help would be appreciated. code examples appreciated.
Thanks,
Nick
You'll need to use a third-party image host like YFrog or roll your own image host. Facebook requires that all media attachments (including photos) be hosted on the public web. Even though they cache the images themselves, the URL that you send to them has to have its own public URL. Many of the popular Twitter image hosts have simple REST APIs to achieve this.
You can also use Facebook itself to host the image via their photo.upload API, if you don't mind two side-effects: it will appear in the user's photo albums, and the thumbnail is likely to appear in the stream twice (once representing the addition to the photo album, and the second in the actual stream story you publish). You can't currently get around this doubling artifact, but it will give you a stable host for the uploaded image.
Just to clarify this. I was actually able to pass and image directly from the iPhone without a third party but that was posting an image to a users photo album. There are I think two methods in the fbconnect api for posting one contains an extra argument for a data argument which can be an image. I'll post more details when I'm in front of the documentation.