QuickBlox / BB10-Facebook-Connector

BB10 Facebook Connector
GNU Lesser General Public License v2.1
7 stars 2 forks source link

A simple Example #1

Open 7daysofrain opened 11 years ago

7daysofrain commented 11 years ago

Im trying to use this but i didn't manage to do it. Can you put a simple use example? When i try to build tells me that i need some libraries like QByteArray.

Thanks!

xleo77 commented 10 years ago

i get this error:

jglanfield commented 10 years ago

I have the same error as xleo77. Looks like this project isn't terribly active.

svladim commented 10 years ago

Hi jglanfield! Are you trying to build and run this sample? Or you are trying to implement it in your own project?

jglanfield commented 10 years ago

Sorry... got it working. I was trying to use it in my own project but missed the connections in the SocialConnector.cpp code. All good now :)

jglanfield commented 10 years ago

Also, this isn't an "issue" per-se, but is it possible to have a user log in via the native facebook app as opposed to a web page? Where should I post a question like this?

svladim commented 10 years ago

I have never tried it. But you can try to use invocation framework: http://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/facebook.html

svladim commented 10 years ago

Also, you can ask your question on blackberry developer forum: http://supportforums.blackberry.com/t5/Native-Development/bd-p/Cascades Regards, Vlad.

jglanfield commented 10 years ago

OK, will do.

jglanfield commented 10 years ago

Ok, I've done that. Regardless, how does the callback URL work? I've set up the facebook app so that the "Valid OAuth redirect URIs" field includes "http://localhost:61793/" as suggested in Facebook.cpp. But even when I log in and grant permissions to my app, it never redirects back. I just get the "Account linked, go ahead back to the app and check the status!" message.

svladim commented 10 years ago

Hi, authorization process take place in browser (separate application). After you have success login to facebook, the browser will redirected to http://localhost:61793/. Your application is listening on that port. It takes fb token from request (to use later) and shows "success html page" (you can find this page in your project and you can change it as you need). All that you have to do later, it to close browser and use you application. Now it have token and able to work with facebook server.