Issues in integrating ios app with twitter api - iphone

Im using xcode 4.2 for developing apps for ios 4.2 and later, so I didn't use ios5 twitter framework.
I referred a tutorial and downloaded the source code from the site.
kOAuthConsumerKey and secretkeys were placed in the code, and the project runs fine and asks permissions to authorize the app.
if The username and password given correctly and the authorize button gets clicked, it went to a webpage that was specified as the callbackurl while creating the twitter app for this ios app.
I also tried with Sharekit.But, same issue occurs.
What's the problem with it, I think callbackurl should be my own organisation's website link. Why that page is called when executing.what I have to change in my app?

if you are using the Sharekit for tweet on Twitter then some changes in sharekit.
Refere this link :http://www.iphonedevsdk.com/forum/iphone-sdk-development/91895-sharekit-twitter-in-ios-5.html

I like this solution, try https://github.com/doubleencore/DETweetComposeViewController

Related

Facebook not allow to use account for ios apps

I have created a IOS app.this app is using login with Facebook its working okay but I have created same copy for code for my new app.I have changed name of the app and also Bundle Identifier and all other setting to compile as a new app.Its not listed under the IOS setting->facebook even Facebook login not working for new app created by same code.
Did you create the facebook app on Facebook dev ? You need to do that to get the facebook id to set in your .plist.
See Doc for more information

AdWhril adds not displaying and even not posting to twitter when upload to app store

i have implemented AdWhirl in my app and when i create build in xcode and install on my iphone then adds are showing perfectly but when i download the app from the app store then adds not receiving.
i have another issue relate to twitter and that is when i have post to twitter using TWTweetComposerViewController and posting to twitter is perfectly fine but when i try to post from my app downloading from AppStore then it shows error Cannot send tweet
i got the answer the problem was that in adwhirl app configration there was setting for Google Admob and iAd but here was not sdk for Google Ad Mob in my app bundle. when i add ad mob sdk to my app then it works perfectly fine.
and in twitter i have dismissed twitter controller twice in my code so there might be reason for not working well but when i deleted one dismiss statement then it works fine now.

App is misconfigured for Facebook login IOS Facebook app installed

I saw this linkenter link description here
But it doesn't solve my problem.
I downloaded the latest Facebook sdk 3.1.1
The original SessionLoginSample provided with sdk works fine.
I made the following changes and the result is: App is misconfigured for Facebook login
Where is my mistake?
I created a new sample Facebook app following step by step the Facebook doc:
Facebook App Image on Flickr
I loaded in xCode the original SessionLoginSample and I changed only the bundleId and the Facebook ID:
xCode plist image on flickr
i experienced the same problem many times.
First make sure you have your Facebookappid set in your property list correctly.
Then go to facebook account settings and delete your ios app from applications.
then go to developer settings of facebook for your ios app.Make sure the app id is correct and also make sure that the bundle identifier is also same as your propertylist in xcode.It should be working afterwards
UPDATED : You do not need to delete the app.Try delete the app from your Facebook settings first.Then go to your Facebook app on iOS and log out.Remove your own app from the device and reinstall (without loving in to your account).Then you try to connect from your own app Facebook will prompt and ak your username and password and it will not return to your app.You clsoe the app and return to your own app manually.When you try to connect again in your own app FB it will ask you for permissions.
I reproduced the problem somehow and fixed like this.
By the way i also set the App Type: setting in advanded settings to Native/Dssktop.
Make sure you configured your app properly as per the following guidelines https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/ Check whether you bundle id is as per you configured in the Native ios settings of app configuration.

IOS5 Twitter - is there a way to retain the App association?

If a Tweet is created using the native Twitter API, the Tweet has a "via [my-app]" indication, where [my-app] is a link to the App's home page.
If the same Tweet is created using the new IOS5 Twitter API, the app says "via IOS" and the link points to www.apple.com.
Is there a way to retain my App association when using the IOS5 API without adding a link to the Tweet itself?
If not, can I continue to use the native Twitter API under IOS5 or is this a cause for rejection?
According to the FAQ on the Twitter iOS developer site, this only happens because your app is not yet live in the app store:
If your application is not yet live in the App Store:
The application making the requests must be launched in Apple's App Store in order for the
attribution to display on twitter.com. Note that the iOS5 version of the application must be
live, not just a previous version.
They also have some tips on how to fix this if it still happens after you're live in the app store here: https://dev.twitter.com/docs/ios-frequently-asked-questions
Since the via [my-app] is set in Twitter application configuration I dont think that you can set it via the iOS Twitter API.
Apple will not reject your app for using the Twitter API directly (for example using Sharekit or MGTwitterEngine). At least they did not reject my app which still uses the ShareKit.

Facebook iOS SDK - Authorize via new Facebook Mobile App returning "authorize#error=unkown_error"

Using latest github version of FB iOS SDK in my iOS app which previously worked fine authenticating with the Facebook app installed. Now in iOS 5 and using the new facebook mobile iOS app the url returned to my application is fb://authorize#unkown_error.
Has anyone encountered this. I verified that iOS SSO is enabled in my app in the facebook dev portal. I also tried creating a new facebook app from scratch and using that in my iOS app and it garnered the same result.
Thanks in advance.
When you try to use Facebook SDK as it was on 4 nov 2011 and complete the tutorial you will run into trouble as mentioned above, because it does not yet implement ARC. If you want to use Storyboarding as well you run into the trouble that the appDelegate now has a slightly different scope. You should not, as the tutorial states, make the appDelegate you respond to Facebook delegate methods but you should doe this in the rootViewController.
I posted a code whit a fix on gitug: git#github.com:doozMen/Facebook-SDK-in-iOS5-and-using-storyboarding.git
in Xcode 4.2.1 when adding the src folder according to the tutorial , you need to include it fully without removing the project file , but on the add files popup you need to to deselect the add to target. then in your linkage build rule add the resulting static library of Facebook to the build target and not the source itself. in that way Facebook compile as is and can be used with or with out ARC/SB .