Bayan
Bayan

Reputation: 283

Sharing image on facebook and twitter from QtQuick application

I have a nokia Qt application (QtQuick QML App) that should share an image on facebook and twitter . is there is any way to do that ?

Upvotes: 3

Views: 936

Answers (2)

Luca Rocchi
Luca Rocchi

Reputation: 6484

you can do actions on Facebook as well as described on Facebook Graph that api can be used by javascript QML

Upvotes: 2

Nicholas Smith
Nicholas Smith

Reputation: 11754

Simple answer, yes.

Long answer, yes. You'll need to decide how you want to post it but both Facebook and Twitter have exposed APIs for uploading images to their services, or you can post it off to an image hosting service like YFrog or TwitPic then use the returned URL with the Facebook & Twitter APIs to share the link.

I'm not sure on Facebook but there's definitely a Twitter Qt library that'll play nice, I'd assume there's one for Facebook but I've never had need to look into one.

Edit: here's the Qt Twitter lib I've looked at before, had to dig into my GitHub bookmarks https://github.com/minimoog/QTweetLib.

Upvotes: 3

Related Questions