How can I remove a cancel button using the Facebook Graph API? - iphone

Can any one suggest how I could remove the cancel button next to login button in the Facebook graph API for iPhone. Where does the code lie?

You shouldn't be doing this - messing around with the login dialogs is a big no-no for Facebook. The whole point of the SDK is that login dialogs look uniform across all applications.

Related

How to add voice call feature to facebook page from messenger

I am currently developing a facebook messenger bot.
There is one feature that I want to add to my bot--voice call.
Is there a way to allow users to call my page when I update the phone number on my app page?
Best case would be putting calling button in menu or upper right corner where setting button is at.
Thank you in advance.

Facebook iOS SDK - UIWebView dialog for login - how can user manually cancel?

I'm having a problem here. I've modified a portion of the source code to prevent my app from launching the Facebook app or Safari for authentication. Instead, a UIWebView will be displayed as an overlay on my app.
However, in the dialog. I noticed there isn't any CANCEL button. Which makes me wonder what happens if the user decides not to login.
I had forgotten to copy the FBDialog.bundle over to my project! ahh!
Are you using FB graph API for facebook login.? If yes,
Then the view that you see for login is programmatically created.
Look into the FBGraph.m for its implementation.
There you can add a cancel button and add your cancel logic there.

Twitter integration in iPhone application

I integrated twitter in my app through oauth engine. When opening the twitter view its displays the twitter login page by default. But that screen not going without login into twitter. When I want to quit that page that can't possibly goback to the previous view. How can I solve this?
I think you working with the example code which u took by googling.As per my knowledge, One example code was designed like until otherwise you give twitter credential, it will show twitter login page.
You just change logic as per your need and do your job.

Graph API for iPhone

Can any one suggest how I could remove the cancel button next to login button in the Facebook graph API for iPhone. Where does the code lie?
The default answer is you can't, its a web page in a WebView by Facebook.
But since Facebook iOS SDK is open sourced. You can actually inject javascript into the WebView to remove the button using this function.
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
But this method is probably against the policy of Facebook so do it at your own risk.
Even if possible to do so programmatically, facebook terms and conditions do not allow us to alter the UI from the facebook graph api.
Also, altering the UI may render the common user confused..
So, its advisable not to do so..
Thanks!

How to add the Facebook Like Button in the end of scrollView?

I am working with navigation based application. Every cell creates a detailView. i have 3 text views in detailView which show title, date and description. I put there textViews in a scrollView so user can scroll them as a single view. Now i want a facebook icon in the end of scrollView. If that icon is clicked and user is already login on facebook, that facebook page should be liked automatically. and if user is not login, it should ask for account information. I am quite new in this and this is my first app. i tried to explore developer.facebook.com but couldn't get that functionality. Can anybody help me with this? thanx in advance.
To implement the button itself, you'll add a custom UIButton to your application using the Facebook Like graphic as its image.
Your selector that handles the touch event will need to handle the NSRequest. You'll need to find out if the user is logged in or not. If the user is logged in to Facebook, your selector will make an NSRequest to Facebook's API for liking the Facebook page. If the user is not logged in, you'll need to instead provide the user some UIView that will handle authentication with Facebook. When you know authentication is successful, you can then issue the NSRequest to the Facebook API for liking the page.
For more information on using the Facebook API in your iOS application, you should check out Facebook iOS SDK at https://github.com/facebook/facebook-ios-sdk. Facebook's iOS SDK includes authentication and extensive API support to help make your job easier.