Facebook iOS SDK how to get posted image id? - ios

I found many online tutorial about how to post image to Facebook using Facebook iOS SDK, but i'm looking for a way to get posted image id. Is it returned with callback methods(if yes, then with which key) or is it even possible to get posted image id?

When successfully uploading the image, you are given the url of the image (key:uri), you could work out the image id from that i guess.
Having the image url should be enough to work with.

Related

GameCenter get GKPlayer photo URL

How can I access the GameCenter player's photo URL? I know about loadPhotoForSize but it seems to return UIImage. I need the URL as I would like to send this URL to my backend and show this photo for users from non-iOS devices.
There is no available GameCenter player's photo URL. It may exist right now, but Apple can change it any moment. And it is not in open access.
Correct way to show player's photo on another non-iOS platforms is to upload this photo to your game servers. Use loadPhotoForSize to obtain UIImage and than upload it to your server. For example you can use answers from here: ios Upload Image and Text using HTTP POST

Share URL similar to Facebook.com/sharer/sharer.php?u= but for Houzz

I'm working with Adobe DPS buttons and currently have set up Facebook and Twitter sharing with them. The buttons take a URL and when clicked pull up the share dialogue.
The Facebook taking the following
http://www.facebook.com/sharer/sharer.php?u=(encoded url goes here)
The encoded url being whatever I want to share.
I want to be able to do this with Houzz.
I've found the page on Houzz.com but I don't think I would be able to use this type of URL share option based on what they provided.
http://www.houzz.com/buttonsAndBadges#houzzbutton
Has anyone seen an option for Houzz similar to Facebook's?
After digging through Houzz's bookmarklet, I've found their somewhat difficult-to-pin-down sharer URL.
http://www.houzz.com/imageClipperUpload?imageUrl=(IMAGE-URL-HERE)&title=(PAGE-TITLE-HERE)&link=(PAGE-URL-HERE)
Just as a quick reminder: an image URL is required (unlike Facebook or Twitter, but somewhat like Pinterest) as one of the main points of Houzz is image sharing/scrapbooking.
I hope this helped someone!

Fetch images from Instagram in iOS

I wish to fetch images from Instagram into iOS app. For this I am using Instagram API. I have set clientID and redirect-uri as shown in http://kmdarshan.wordpress.com/2013/02/23/integrating-instagram-sdk-in-your-ios-apps/ and http://instagram.com/developer/
Code used is given in link above. But in the line:
if ([[UrlParts objectAtIndex:(1)] isEqualToString:#"NeverGonnaFindMe"]) {...
the string always equals to oauth.
Where am I getting wrong? Anyone having any other option to integrate instagram images into iOS apps, please let me know.
I just found a project to fetch instagram images into ios app on:
https://github.com/hsandhu/HSInstagram
Awesome application, saved my time.
you can try this framework to show the instagram feed, both user and tags
https://www.cocoacontrols.com/controls/sbinstagram-viewer
is more complete and is easy to integrate
regards

iOS 6 SLComposeViewController - creating a facebook post with text and URL - no image

Quite simply unable to make a post with just the text and NSURL object. I can do it with just the post, or with the post, NSURL and image, but ideally I'd just like to provide the link with the post.
It simply states "Cannot post to Facebook" as "The post cannot be sent because the connection to Facebook failed."
Is there anything I can do? I'm not using the Facebook SDK at the moment, but perhaps I might have to?
Many thanks
We just started running in to this issue with code that was working correctly yesterday. Googling shows a lot of people having this issue sharing from other Apple apps today via native integration. I actually think this is an issue on Facebook's end.
I tried sharing a URL from Mobile Safari and it too fails with the same error. Can you confirm that Mobile Safari also fails to share?
Well for now I'm able to leave the image part nil (still include the method, just leave the argument nil) and it will show the text and link only.

Can I attach an image to an FBDialog?

I'm writing an iOS app that produces an image, and we'd like the user to be able to post that image to their Facebook wall using the standard facebook dialog.
The Facebook iOS SDK provides a dialog for posting to a user's wall, using the dialog:withParams:andDelegate: method, and you can provide the URL of a picture in the params argument. However, that's no good to me - I want to send off an image that exists only on the phone.
The SDK also provides a way to post an image to a user's wall, using the requestWithGraphPath:andParams:andHttpMethod:andDelegate: method. But that's no good to me either - I want to use the standard dialog.
Is there a way for me to send the image data with an FBDialog?
You need to do a photo upload first, with a graph call to '/me/photos' - this will be in an album that your app will have to create, not an existing one (unless your app created it).
That will return you the photo id, which you can then hit the graph again with a call to that specific id: 'https://graph.facebook.com/RETURNING_PHOTO)ID'
This will return name, picture, source, link (and a bunch of other stuff) - you can then use the picture (which is a thumbnail) in your wall post as the picture and add the URL to the source (big image) or use the link to the photo in the album (link) inside your message text.
Hope this helps,
-J

Resources