Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

New Developer
Posts: 26
Registered: ‎05-09-2013
My Device: Blackberry Z10
My Carrier: Vodafone

Facebook API

I am building an app that uses Facebook's graph api and I am wondering if it is possible to connect the app to my app in Cascades or is the only way to do it in HTML5 development?



I need to be able to use the graph api to login into facebook, and pull down a users facebook friends and store it in my application. Please let me know if there is a way to do this in Native Development?




Posts: 15
Registered: ‎05-09-2013
My Device: Bold 9650
My Carrier: Viettel

Re: Facebook API

It seems that these link may help you: http://qt-project.org/wiki/Qt_and_Web_Services http://gitorious.org/qfacebook https://code.google.com/p/facebook-cpp-graph-api/

Feel free to press the like button if I helped you in solving your problems.
Posts: 123
Registered: ‎09-18-2013
My Device: Dev Alpha B
My Carrier: BSNL INDIA

Re: Facebook API

In native cascades, you can use an object of WebView class to display a webpage within your app. And there are functions in WebView that lets you interact with the JavaScript code on the webpage being loaded. So, you can load a webpage using WebView and then transfer data from the JS to your app using navigator.cascades.postMessage(), and connecting WebView's messageReceived(QVariantMap) signal to a suitable slot.