PFLogInViewController with multiple Twitter accounts - ios

Is there a way to use the PFLogInViewController when there are multiple Twitter accounts on defined on the device?
Currently the login only works when I have a single account but after adding another one the login simply hangs - just showing the loading animation without giving any notification to the user / console.

I've experienced the same problem with only being able to login to one Facebook account. After a lot of research I couldn't find a way! Had to use multiple simulators in xcode to test with users. I think the reason was because it automatically looks in the iphone's Twitter/Facebook account. I believe if you change it in your iphone settings you can use multiple accounts.

Related

How to handle facebook login with multiple targets?

Here is my setup:
I have quite a few targets to run an app on the white-label method.
So each target has its own Info.plist, icons, names, etc.
The thing is that I want to have one login system only with facebook. So they all point to the same facebook app.
The problem: sometimes, when I login on app A using facebook, the facebook app open the app B.
I have all setup following the facebook guide with all bundle ids registered on facebook app, etc.
Has anyone had this issue before?
Solved it by forcing facebook login behavior to stay on a webview.
loginBehavior = FBSDKLoginBehaviorWeb
This way the users never leaver the app, so there is no chance of returning on a scheme opening the wrong app.

Ejabber XMMP Services for iOS App

I'm developing a chat app using Ejabber XMPP for ios. I'm able to connect and Authenticate to the server. i'm able to see online and offline users also. but i have an issue with the below i search alot but not found solutions for that can someone help me on this things asked below:
How to upload logged-in user avatar as a display pic.
How to a person i'm using below method but it is not adding, i'm using simulator to add the user. if i add in android app it is displaying in my simulator.
-(void)addUser:(XMPPJID *)jid withNickname:(NSString *)optionalName;
but how to call the above method
How to disable account temporarily
How to delete account
How to share audio/video/photo files in chat
How to create a group

Facebook login error: "The developers of this app have not set up this app properly for Facebook login"

I've been seeing error like this when trying to use Facebook Login.
I've checked everything including setting up the pList
and followed solutions in this link
The developers of this app have not set up this app properly for Facebook Login?
by setting the "
Do you want to make this app and all its live features available to the general public?" to YES
but then this image came up.
When I first try doing facebook login there's no need to even turn the live feature available to YES to make it work I wonder what went wrong.
Ok guys i found the solution, just go to facebook on your safari in the iOS simulator and log out the current user or test user and create a new test user. It should work!

Initiate Facebook Group Chat from iOS App

I want my app to create a new Facebook group chat with certain people that opens either on Facebook's site in Safari or in the native Facebook app when the user presses a button. I want Facebook to handle the whole chat and my app only to initiate it somehow in the cleanest and least involved way possible. My app already uses the Facebook SDK to open an active FBSession, so I've already got login credentials.
Looking around online and in Facebook's docs, I can't find anything that suits my needs. The closest thing I found was in this answer containing a list of Facebook app URLs you can connect to that open the Facebook app to certain pages. There's "fb://chat/(initWithUID:)" and "fb://messaging/compose/(initWithUID:)". However, not only is there no explanation on how to use these, but people say that Facebook has changed these URLs (and does not have any documentation on them), so they don't work anymore unless I reverse-engineer new URLs (which could change again). Ugh, so close!
I also found examples on starting chats with the Facebook Chat API, but that involves logging into Facebook using some networking framework then writing my own GUI and model for sending messages, which I am only prepared to do as a last resort. There should be some way to let the Facebook app or website do all that. Does anyone know how I can do this?
I've found something very close, but I still don't see a way to make my app initialize it with the desired group of friends:
The Facebook SDK has a message dialog that can appear for sending messages to friends. This isn't exactly what I wanted but is good enough because it means that all the programming is already done for me by Facebook, and users should be able to see these messages on https://facebook.com and the Facebook apps. https://developers.facebook.com/docs/ios/share#message-dialog

What if Twitter or Facebook accounts are not configured on iOS 6?

Does anybody know a smart way to bring the user to enter their Facebook or Twitter account login information, if they aren't already logged in? For example, a user tries to log in my application with Facebook without configuring the Facebook account in the iOS settings. Can I ask him to do it with an alert, for example, but how can I bring him to the exact section of settings for that?
#rckoenes is correct. Under normal circumstances there is no way to manually send the user to preferences. There was a method of doing this introduced in iOS 5, but Apple quickly depreciated it in iOS 5.0.1 or 5.1 I don't remember exactly which one.
Now, on to the current situation. If you are using an SLComposeViewController in the Social Framework, you don't even have to worry about adding this functionality yourself. It is done automatically by iOS. Below is a screenshot from my 6.0 simulator attempting to post to Facebook without any accounts signed in. This is also true for Twitter and Sina Weibo.
You can't, there is no way to get the user to the settings app lett a lone the correct section.

Resources