App won't post text on Facebook wall - iphone

I'm using ShareKit to public text on user Facebook wall. I have some strange problem, and I couldn't find answer for my questing.
When I tried to post something on wall my app launch Safari/FacebookApp and after I accepted that, I agree to app post things on wall my iPhone back to my app without posting on wall.
Someone have that case?
This is my code:
NSURL *url = [NSURL URLWithString:#"http://xxx.xxx"];
SHKItem *item = [SHKItem URL:url title:#"something"];
//Share the item
[SHKFacebook shareItem:item];

i got same problem. create new app. on facebook solved my problem. create new app and copy new app ID into your project.

Related

upload image to facebook wall after posting it to photos using sharekit 2.0

I'm trying to post image to facebook photos using sharekit:
SHKItem *item = [SHKItem image:image_ title:#""];
[SHKFacebook shareItem:item];
Everything works fine but normally when you post photo using facebook website information is posted on faceook's wall also. When I post my photo using sharekit it doesn't happen. How can I achieve this?

Facebook button going to facebook iPhone app, but not loading correct facebook page [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Custom URL scheme for new Facebook iOS app
I have a Facebook button in my iPhone app. When it gets touched I want it to go to the Facebook iPhone app and load a facebook page if the Facebook iPhone app is on the device, if not, then go to Safari and go to this facebook page. The code below takes you to the facebook app, but it just goes to the feed. But it works how I want it to when the Facebook iphone app is not installed
This code does get run.
How can I go straight to the page from a click of the button?
NSString *urlStr = #"https://www.facebook.com/MYFACEBOOKPAGE";
NSURL *url = [[NSURL alloc] initWithString:urlStr];
if (![[UIApplication sharedApplication] openURL:url]) NSLog(#"%#%#",#"Failed to open url:",[url description]);
Maybe try using this instead.
https://apps.facebook.com/YOUR-NAMESPACE-HERE
I can access my own canvas app with the above URL, but using www. doesn't work.

Facebook Posts Not Posting From App Unless Dialog Box Written In

I use ShareKit to share stories from my app to Facebook and Twitter. I click everything in the app to share, and it pops up with the dialog box giving me the option to Share or Cancel. If I click Share, it never posts. Not in my timeline or news feed, nor where anyone else can see it. If I type something in the dialog box first, it will share. Is this a bug with ShareKit or with Facebook, and how can I remedy this issue?
SHKItem *item = [SHKItem URL:[NSURL URLWithString:_entry.articleUrl] title:_entry.articleTitle];
[item setCustomValue:#"http://www.316apps.com/icon.png" forKey:#"picture"];
[SHKFacebook shareItem:item];
the problem might be, that you use obsolete original shareKit. Facebook has deprecated "message" parameter in FBDialog, which is used when you share text. A workaround is to use Facebook's Graph api. This is addressed in ShareKit 2. If you decide to try it, make sure to follow install wiki literally, as many things have changed.

Facebook URL Scheme for iOS - post photo

There are many URL schemes that can be used for facebook on iOS.
Is it possible to use one of these URL schemes to post a photo to a fan page?
I was trying to use fb://publish/photo/(initWithUID:)/(aid:)/(pid:) and fb://upload/(initWithSource:)/profile/(uid:) without any luck.
I'm not sure what to use for the initWithSource:.
Has anyone had any success in doing this?
You can use ShareKit framework to share the images to Facebook.
All you need to do is simple as following.
SHKItem *item = [SHKItem image:myImage title:#"Title"];
SHKFacebook *sharer = [[[SHKFacebook alloc] init] autorelease];
[sharer loadItem:item];
[sharer share];
ShareKit is very useful and easy to use.
You can get some idea from here and then merge this code in your own code as per on your requirement Post Photos on fan page

IOS Post Photo To Facebook Without The Facebook Connect-Api

Is it possible to post a photo to a Facebook Page wall without using the Facebook connect Api?
To post some text I tried using this:
NSString *post = [NSString stringWithFormat:#"fb://publish/profile/1111111111112311?text=%#",#"some text here"];
NSURL *url = [NSURL URLWithString:post];
thanks
To do this, I would suggest using Sharekit. ShareKit is a free api that allows you to intregrate many sharing feastures for many services, with minimal code (less than 20 lines).
Here is a link to get ShareKit: getsharekit.com
To share a photo on Facebook with Sharekit, do this:
Add sharekit to your project by coping the files found at the link above
Use the following code to set up the share instance:
UIImage *image = [UIImage imageNamed:#"someImage.jpg"];
SHKItem *item = [SHKItem image:image title:#"Look at this picture!"];
Then just share the image with this:
[SHKFacebook shareItem:item];
However, the newest Facebook API is actually pretty easy to use. And it's very well documented, so you might want to check it out. There are some benefits to using Facebook's actually API, rather then use a proxy service.