What would be the easiest way of posting to Facebook these days on iOS 5 or better?
I need to post a short message like "Hello world!", a link like "http:www.apple.com" and an image link, like "http://www.apple.com/logo.png"
I have downloaded Facebook SDK and there are several issues with it. In theory we can post via facebook app, iOS integration or via dialogs. In practice, the code they provided in the example (HelloFacebookSample) it crashes on third option, second option does not have the param for image link and the first option is stuborn reporting the error that my application is not registered with Facebook.
Well, it is as the second option lets me post the text but I can't attach the link to an image. And after some googling arround, I managed to fix the crash in the third option, but that option supports only text messages.
In short, posting via FB app lets me post text, link and the image, but fails for unknown reason. Second option has the link and text params, no image link - instead I can only post the image data. Maybe I should download the image first and then post it with this method?! Third option has only s single string param, but does not work on my iPod with iOS 5.
So what should I do? Go back to the way I did it few years ago, all on my own via Graph API and JSON? Is there a better way that works?
Link to the code I'm referring to: HFViewController.m
I need to post a short message like "Hello world!", a link like "http:www.apple.com" and an image link, like "http://www.apple.com/logo.png"
I have downloaded Facebook SDK and there are several issues with it. In theory we can post via facebook app, iOS integration or via dialogs. In practice, the code they provided in the example (HelloFacebookSample) it crashes on third option, second option does not have the param for image link and the first option is stuborn reporting the error that my application is not registered with Facebook.
Well, it is as the second option lets me post the text but I can't attach the link to an image. And after some googling arround, I managed to fix the crash in the third option, but that option supports only text messages.
In short, posting via FB app lets me post text, link and the image, but fails for unknown reason. Second option has the link and text params, no image link - instead I can only post the image data. Maybe I should download the image first and then post it with this method?! Third option has only s single string param, but does not work on my iPod with iOS 5.
So what should I do? Go back to the way I did it few years ago, all on my own via Graph API and JSON? Is there a better way that works?
Link to the code I'm referring to: HFViewController.m
Last edited: