I'm trying to get Twitter and Facebook to work on Socialize for my iOS app. I've followed the steps on Socialize's website up until the "Linking to existing credentials" area (Twitter: http://socialize.github.io/socialize-sdk-ios/twitter.html, Facebook: http://socialize.github.io/socialize-sdk-ios/facebook.html). When I run the app, it successfully builds but Facebook and Twitter still do not show up as options for sharing. I have a feeling there's some small part I'm missing but can't figure it out. Does anyone know if maybe there is something that Socialize does not mention in the guide that may need to be done or some other possible answer?
Thanks,
David
you have to put the following in the app delegate, or another place, follow the documentation:
[SZFacebookUtils setAppId:#"YOUR FB APP ID"];
[SZTwitterUtils setConsumerKey:#"YOUR_TWITTER_CONSUMER_KEY" consumerSecret:#"YOUR_TWITTER_CONSUMER_SECRET"];
http://socialize.github.io/socialize-sdk-ios/facebook.html
http://socialize.github.io/socialize-sdk-ios/twitter.html
Related
I'm new to the site and new to developing so I'm looking for some general advice here.
I'm looking to build and app which works along side Instagram. So this is what I want to be able to do to start with.
User opens app and can submit an already posted (and held on Instagram) photo to the app. The user at this point will need to be asked to log into their Instagram account. So for example they would select submit and it will open a window asking them to log into Instagram and then it will display all their available photos which they have posted.
User selects the post they wish to submit to the app.
Image displays on app in a gallery of submitted posts by all the other users for people to see.
Thats the basic premise. It's actually a lot more involved than that but I am learning and trying to keep it simple at the moment.
What I would like to know is. Is this possible, are there any guides which exist on how to do this.
What sort of process will I be looking at here. I've tried looking for posts on Instagram integration etc but I can't find anything similar to this.
Thanks in advance any help or pointers on where to even start will be helpful.
error instagramdemo
Stpes to integrate instagram:
1)https://www.instagram.com/developer/
You would have to create an application on the instagram developer portal, get a client ID for performing OAuth flow.
2)Ask your users to login to the instagram app and get the auth_token from instagram API.
3) Use the auth_token in all your requests basically.
4) Download code from here: https://www.sendspace.com/file/mnuqck
and replace your clientid in my code. you will get response in code.
These libraries should help you get started,
https://github.com/shyambhat/InstagramKit
https://github.com/crino/instagram-ios-sdk
You would have to create an application on the instagram developer
portal, get a client ID for performing OAuth flow.
Ask your users to login to the instagram app and get the auth_token
from instagram API.
Use the auth_token in all your requests basically.
The whole flow would have been implemented for you in the libraries I mentioned.
Say for example if you are using InstagramKit and after integrating/authorisation by the user getting images from the users feed would be as simple as below,
InstagramEngine *engine = [InstagramEngine sharedEngine];
[engine getSelfFeedWithSuccess:^(NSArray *media, InstagramPaginationInfo *paginationInfo) {
// media is an array of InstagramMedia objects
...
} failure:^(NSError *error, NSInteger statusCode) {
...
}];
Steps to get InstagramKit up an running,
Download the InstagramKit from github.
Make sure you have cocoapods installed on your mac, refer
https://cocoapods.org/ for help.
Open the InstagramKit-Example on terminal and run the following
command,
pod install
Wait for the pod to finish its magic.
Now you should have InstagramKit-Example.xcworkspace created in the InstagramKit-Example, open it and run.
I just did it now,
I can use SLRequest to publish to me/feed, but I am having issues trying to publish to [pageid]/feed.
Can someone point me in the right direction on how to do this?
I have #"publish_stream" permissions requested.
So it turns out that the permissions have to be granted in two different steps. I was under the impression that basic permission was already included. In case someone needs help with Facebook publishing in general, this helped me:
http://www.stuarticus.com/2012/11/12/ios-6-the-social-framework-reference/
I'm using Sharekit and it used to work perfectly without any pbm, since two days I still get this error message whenever I try to share something with Sharekit in my app
There was a problem requesting access from Twitter
Sharing with other services like Facebook or Email still working well.
Did you noticed a similar problem? any fixes?
For more info : when I try sharing somthing, It request all time my approval to the application, even I did that before.
It has been fixed, get the latest ShareKit version.
I would like to migrate from fbconnect to facebook sdk. My application is already running on fbconnect. Can i simply delete just delete the fbconnect files(such as FB request, Facebook, FBDialog) files and simply add Facebook SDK framework in?
When I do that, i get errors like:
1)No Facebook.h, No FBDialog.h , NO FBRequest.h so on...
How to solve this?
simply replacing the framework with previous FBConnect files will not work. They are now using "FBSession" concept for logging in and changed posting methods also.
So it would be better for you to follow the document here.
I have been able to integrate the Facebook API using Sharekit.
But currently i am being displayed with the following error.
Can someone provide a lead to me on this that what is going wrong here.
The screen shot for the error is displayed below:
Enter the Facebook APIID in SHKConfig.h file