I wanted to add some twitter/facebook integration to an app I am working on. Since I frequently hear the terms "twitter integration" "facebook connect" and the like I thought this info would be readily available, but searching these terms on the forums and google pretty much lead me nowhere. Can anyone provide assistance on this; I'm sure its not too bad.
Basically would I would like is to have, on a button press, a screenshot be taken and then uploaded to the users twitter/facebook accounts as a tweet/post with some text that I specify before hand; should hopefully be straightforward. Thanks!
I wanted to add some twitter/facebook integration to an app I am working on. Since I frequently hear the terms "twitter integration" "facebook connect" and the like I thought this info would be readily available, but searching these terms on the forums and google pretty much lead me nowhere. Can anyone provide assistance on this; I'm sure its not too bad.
Basically would I would like is to have, on a button press, a screenshot be taken and then uploaded to the users twitter/facebook accounts as a tweet/post with some text that I specify before hand; should hopefully be straightforward. Thanks!
Looking through the twitter one now; seems cool. Is there any sample code about how to use it to post to the account or do I just gotta sift through all the .h files and figure out what does what? It's worth noting that I'm only interested in posting to the users twitter account for this project (not receiving anything). I've got no problems sifting through everything directly; just looking to save time (also at work on a PC ).
You may want to look into oAuth authentication for twitter instead of the user having to input their username/password into your app.
#1 the user cant know for sure that your app isnt sending this info back to your servers.
#2 The users posts will say its posted from: API. When using oAuth it says it was posted from your app and a link to your website or itunes download.
I just setup my app to use twitter. I found one script that made it real easy to register the app to the users account and then found another one that sent messages easyier once authenticated and I now use a combination of the two.
I now need to look into adding facebook support to my app.
Yeah I was just reading about all the oAuth complications on the MGTwitterEngine guy's blog... seems like its a real battle.
I may look into the type of things your doing; although my "screenshot" feature may complicate it. I guess i'll have to have the pic uploaded to something like twitpic and then include that link into the twitter status update....hmm...
I'm curious about the whole oAuth business, just never had that much time to do the research. It seemed like it was too much work for the effort needed.
Could you outline the process you went through and possibly post the scripts you used to register the app to the users acct, etc ?
Quote:
The users posts will say its posted from: API. When using oAuth it says it was posted from your app and a link to your website or itunes download.
Not entirely true, the user's post actually just says "From Web".
Not entirely true, the user's post actually just says "From Web".
Nope, twitter changed it and it no longer says "from web" it now displays "From API"
They have to ways of doing oAuth, web and application. I looked into the application versions and it seemed to complicatied for what my app needs (post a simple status message). So i registered on twitter as a web App for oAuth.
#1 The user gets sent to the facebook page for authentication.
#2 facebook calls a PHP script on my site and passes the users secret and key.
#3 My PHP script logs the users secret and Key to a MySQL database assigned matched to the UUID of the users device. Then displays a page saying the registration is complete and the user can continue using the app.
#4 My app can then request the key and secret for the device UUID for the user and send a tweet.
ill try an post some more info on where I found the two scripts I used when I get home.
Nope, twitter changed it and it no longer says "from web" it now displays "From API"
mehh.. for what it's worth, my last twitter post that I made from one of my apps says
"7:48 AM Aug 6th from web" on it. So unless they've changed it within the last week or 2...
That's odd, to say the least. That change log is from July, yet the app I'm developing still says "from web", even though I've used it after the specified change date.
setup the config.php with your database info.
setup secret.php with your twitter app info.
you need to check a few of the files and make sure you replace YOUDATABASETABLE with the name of your database table and also that your table has to corrisponding sections.
#1 the user is sent to your start.php?uuid=XXXXXXXXXXXX
#2 app settings on twitter website should be set to send succesfull login back to confirm.php
#3 Thats it now to update a users status just pass the device UUID and status message like so.
updatestatus.php?uuid=xxxxxxxxxxxxxxxxxx&status=Me ssage to be sent.
Last edited by MikesTooLz; 08-14-2009 at 05:29 PM.
By the way, does anyone of you save the user credentials once you logged in to twitter using MGTwitter engine, so that when you relaunch the application in your iPhone you don't have to enter user name and password again.
Is there a way to verify user credentials when using MGTwitterEngine in an iPhone app.
By the way, does anyone of you save the user credentials once you logged in to twitter using MGTwitter engine, so that when you relaunch the application in your iPhone you don't have to enter user name and password again.
Is there a way to verify user credentials when using MGTwitterEngine in an iPhone app.
Thanks and Regards
Prabodha.
You should not be storing a users username and password.
#1 its not secure
#2 the user doesnt know if you are securly storing their info or even sending it back to your servers where you have full access to their account.
They should be loggin in to their account via twitter site and allowing your registered app. You will then get a secret key that lets your app interact with their twitter account.
You have to add the source path. Look in the project settings for FBConnect. I believe they use ../../ as their source path or something similair. You could also try ./ if it's in the same folder.
You have to add the source path. Look in the project settings for FBConnect. I believe they use ../../ as their source path or something similair. You could also try ./ if it's in the same folder.
yeap, i found out it was the header search path was incorrect...
im wondering, do we need to copy the entire "fbconnect-iphone" folder to our app? or it can be just a reference outside of the app folder?