How to add button to follow application owner's Twitter account from iphone application? - iphone

I'm developing an application in which I need to include an option "Share on Twitter " click upon which the application's itunes address is automatically twitted to the user's Twitter account(ofcourse I'm accepting user's id and password). I was able to do that.
Now I want to add a button "Follow" click upon which will enable user to follow the application owner's twitter account automatically.
Anybody having idea how to accomplish this? Thanx in advance.

You need to call the friendships/create method with the ID or username of the person you want to follow. The authentication etc should be the same as you're using to update their status.

Related

Facebook - How to know if a user uses an app?

I cant' find the right API call to know if a user has added an app? Any idea on how to do this or get the app users?
Thanks
There is no way to get the App users, you can store new users in your database with their ID right after authorizing. You can use the "Deauthorize Callback URL" field in the settings to check for users who deauthorized your App and remove them from your database.

How to register (or ideally self-register) a Facebook app developer without forcing a "friendship" with an owner/admin

Our team is building an app that has Facebook login requirement (in addition to other oauth/identity providers such as LinkedIn, Google, end so on).
The app is obviously in the sandbox mode, so in order to develop/play with it, it requires developer accounts for each team member, otherwise login flow just fails.
My problem is that, as an app "owner" I don't see a way how to register developers or testers that are not in my friend list. I tried to put an e-mail address of one of my colleagues that she is using for facebook account, but Facebook did not accept it with the message that user id could not be resolved. And I really do not want "to friend" with anyone. Making the app live is not an option either as it required review process, and we are pretty far from finishing this.
So is there any solution?
Update: Here is the error message shown to the user when she is not registered as a developer:
App Not Setup: The developers of this app have not set up this app
properly for Facebook Login.
Ok, figured it out. An app owner can use an alias that comes with the "facebook email" (whatever is in front of #facebook.com)
To access this special id, you need to go through the set of links:
Your profile page
Then click About
Then click "Contact and Basic info"
Then click on emails link to show your emails (emails hidden from Timeline)
Then find #facebook.com email and take the part before the # and use it
for registering

Set the profile picture for a test user

It looks like it's not possible to programmatically set a user's profile picture - you can only upload to an album, then send the user to a "make profile picture" page. Is there any way to do this for a test user?
I'm doing automated testing for a mobile app and want to generate new test users for each test. However, the app requires users to have a profile picture in order to log in, so it's currently not possible for me to create new users on the fly and have them be able to use the app. Is there a workaround for this? And are there plans for this functionality to be implemented?
(I'm using ruby and httparty to communicate with the API.)
Currently you can set up test user's detail from dashboard, but still facebook does not allow to do it programmatically via api.

no way to create / register first application

I tried to create my first app.
I went to https://developers.facebook.com/ and clicked on 'applications'.
Then facebook redirected me to my facebook page. There was NO button to '+add an application' and no form to ask me if I needed 'something' to create the application.
I added a valid credit card because it's mandatory to get a 'developer' status.
How I can add an application to facebook. Is there a way to ask their tech department?
(edited)->
Also if I click on https://developers.facebook.com/apps it redirects me to my facebook page WITHOUT a window to 'Request for permision'
<-(edited)
Here you will have a button to add New App, a popup should appear to write the New App's name. I can see in your post you don't get this popup, but it is where you need to go. So try using this link on your Personal Account not your pages account, just like DMCS is saying.
Here you should get a couple of more links, and there's a how to link that might help.
<---edit--->
Here you can find a fast track to build a facebook app. Not sure if it's what you want, but it might help in some parts of the process.

Multiple facebook accounts in single iPhone app

Is there a way I can allow user to login with multiple facebook accounts at the same time? Like what tweetie2 does for twitter accounts. So if I have two facebook accounts - a#a.com and b#b.com. I want the user to login with both of them on my iPhone app. Selecting tab for a#a.com will show statuses from a and selecting tab b#b.com would do the same for b.
Please let me know.
Thanks
AJ
Ya if you used keychain to store their credentials it'd be possible to have them enter their credentials for each account (you'd store them in keychain) and then do the logout/login as necessary. Not the best, but might be all you have open to you.
With the way the FBConnect code works, probably not more than one user at a time.
However, if you had two users A and B, when user B's tab is clicked on, you could log out user A and then log in user B. Then, when user A's tab is clicked on, user B would be logged out and user A logged back in.
Sam
You can use one in iPhone app and the other web based
Unfortunately the web based version does not support photo uploads. You have to use the app version to get this.
There is 'Friendly' for facebook on the iPad so it must be possible.