I added Facebook login into my project. I am taking this error. The record is added but I didn’t login this Facebook account.
Please try this sample project. Fiirst, check it with my Backendless app, then set your appId & secretKey (and don’t forget change URL types -> … -> URL Schemes). Compare how it goes.
My backendless sdk is actual.I compared your codes, but I didn’t find a difference.
The record is added. I can try to login this account but I am taking a error(code: 3000)
http://support.backendless.com/public/attachments/fb7bb0991dddba5f49370be051671e53.png</img>
http://support.backendless.com/public/attachments/46ae73acb72711b3f25d35e936b87a41.png</img>
Alican, I just released the libs, where this issue is fixed.
I updated my lib. But i am taking the same error “data parameter nil”
backendlessE6C36E04-D3DC-E250-FF88-AA621DC0D600
I need a whole URL, not URL.scheme
I don’t understand. Which url do you want ?
From ‘openURL’ app delegate (line 4):
func application(application: UIApplication, openURL url: NSURL,
sourceApplication: String?, annotation: AnyObject) -> Bool {
print("AppDelegate -> application:openURL: \(url)")
let backendless = Backendless.sharedInstance()
let user = backendless.userService.handleOpenURL(url)
if user != nil {
print("AppDelegate -> application:openURL: user = \(user)")
}
return true
}
http://support.backendless.com/public/attachments/931f392660934038e3d4f63e769ea964.png</img>
Forgive me
We need additional log, please switch on a logging (line 5), and provide a log (as text, we will copy/paste it):
func application(application: UIApplication, openURL url: NSURL,
sourceApplication: String?, annotation: AnyObject) -> Bool {
print("AppDelegate -> application:openURL: \(url)")
DebLog.setIsActive(true)
let backendless = Backendless.sharedInstance()
let user = backendless.userService.handleOpenURL(url)
if user != nil {
print("AppDelegate -> application:openURL: user = \(user)")
}
return true
}
AppDelegate -> application:openURL: = backendlessE6C36E04-D3DC-E250-FF88-AA621DC0D600://%7B%22lastLogin%22:%22Tue%20May%2010%2016:56:12%20UTC%202016%22,%22gender%22:%22male%22,%22city%22:null,%22created%22:%22Tue%20May%2010%2016:56:11%20UTC%202016%22,%22birth_date%22:null,%22last_name%22:%22%D6zs1rma%22,%22ownerId%22:%2266383879-240B-629B-FF2D-5BD3FBF0D500%22,%22__meta%22:%22%7B%5C%22relationRemovalIds%5C%22:%7B%7D,%5C%22selectedProperties%5C%22:%5B%5C%22gender%5C%22,%5C%22city%5C%22,%5C%22created%5C%22,%5C%22birth_date%5C%22,%5C%22last_name%5C%22,%5C%22ownerId%5C%22,%5C%22__meta%5C%22,%5C%22__updated__meta%5C%22,%5C%22phone%5C%22,%5C%22name%5C%22,%5C%22___class%5C%22,%5C%22job%5C%22,%5C%22updated%5C%22,%5C%22first_name%5C%22,%5C%22objectId%5C%22,%5C%22email%5C%22%5D,%5C%22relatedObjects%5C%22:%7B%7D%7D%22,%22user-registered%22:true,%22phone%22:null,%22name%22:null,%22___class%22:%22Users%22,%22user-token%22:%22E2C52CAE-D2D6-889B-FFCD-0586EDD9C300%22,%22job%22:null,%22updated%22:null,%22first_name%22:%22Alican%22,%22objectId%22:%2266383879-240B-629B-FF2D-5BD3FBF0D500%22,%22email%22:%22ozsirma@icloud.com%22%7D
2016-05-10 19:56:14.287 RoommateApp[686:13857] UserService -> handleOpenURL: url.scheme = ‘backendlessE6C36E04-D3DC-E250-FF88-AA621DC0D600’
2016-05-10 19:56:14.288 RoommateApp[686:13857] UserService -> handleOpenURL: JSONObject = ‘(null)’
2016-05-10 19:56:14.295 RoommateApp[686:13857] UserService -> handleOpenURL: EXCEPTION = data parameter is nil
Are there any solution ?
Alican, the “last_name” of your FB account contains a symbol “%D6”:
%22last_name%22:%22%D6zs1rma%22
Could you change it?
ö,ı,ş,ü,ğ,ç,İ letters are in Turkish alphabet. Should I change url with the help of processing of url ? %D6 -> Ö