This question seem duplicate but problem is that other question are old or not giving answer as my need.
What I have done:
I have integrated facebook for iOS 5 and iOS 6 both and it is sharing on wall properly.
Problem
My application have a UIButton "LIKE" to like my application page on facebook.
I want that if user click on this button he should be able to like that page.
I have search for hours but not able to get any proper solution.
For iOS 6 I get following link of apple iOS 6 site
iOS 6 with facebook
Here in third segment it show an image where app page is open in UIViewController with facebook like button.
and it said that we can open it without leaving our app.
I search but don't find how to open this page in UIViewController as we open dialog for share.
Ask me if you need more information.
Happy to get any kind of help or information.
As far as I know, the app shown by Apple with the Like button integrated (i.e. the App Store) is using a webview to display its content. This button is not something you get from a native code. The reason is that Facebook don't wan't to get Like actions without a user action to trigger it (I heard that from a Facebook guy at the App Day 2012 conference in Paris). And the only way to ensure that is to encapsulate and hide that in an HTML component.
What I would suggest is to instantiate a small webview displaying a page containing only the Like button of the desired page. Let us know if it work! ;-)
Mathieu is right, there is no way you can do that with a normal UIButton.
You have to use an iFrame (loaded in a UIWebView) if you want the button to like the page immediately. I did not like this approach as it takes some time for the iFrame to load.
More information can be found here: http://www.raywenderlich.com/1626/how-to-post-to-a-users-wall-upload-photos-and-add-a-like-button-from-your-iphone-app
I ended up having a UIButton that opens the Facebook page in Facebook.app or Safari.app. The user has to press the like button manually.
It's just allowed for testing purposes and iOS only.
check this out
https://developers.facebook.com/docs/ios/like-button/
Related
I want to open an app store link within an app but without closing the app.
You can look for the best example which is Cut The Rope
It opens the link with a modal view controller and looks similar to the view when we press the app icon the app store
As I think it might be a UIWebView presented in moal controller. If guess anything interesting or if you have any answer please let know about this
You can use SKStoreProductViewController: SKStoreProductViewController StoreKit Reference
Example: Stackoverflow Answer with same problem
I have banner ads (mopub with AdMob and iAds) implemented in my app. When I click "Visit Site" on some ads I get a seemingly very nicely embedded UIWebView or browser experience with site navigation and a "Done" button in the lower right hand corner. Tapping "Done" takes me back into my app.
What exactly is providing the embedded browser experience here and how do I replicate it in my app? Is this a UIWebView buried somewhere in AdMob/iAds/etc SDK? I have already embedded a UIWebview, but I would like to leverage whatever framework and code the Aads are using if possible and provide a consistent experience.
Looks like SVWebViewController is exactly what I am looking for.
I am using the Facebook Javascript SDK to bring up a feed dialog, which allows the user to post to their wall. This is working perfectly in iOS Safari but not so well when inside the Facebook app's browser. Inside of Facebook's in-app browser, the feed dialog is missing the Share button that normally appears at the top right corner of the overlay. I have attached a screenshot to illustrate. I have been grinding my gears on Google trying to find people with similar issues but have not been successful. Have you had any similar experiences? Does this look like a bug with Facebook or something that I am doing wrong. If it is the latter, can you shed some light on how I might go about fixing? Thanks!
In the application I' currently developing, i need the user to log on Facebook. For the time being, a webview filling the whole screen allows that but I would like the login view to be displayed only on a modal view taking just a smaller part of the screen. Does anyone know if this is possible and in that case how to do that ?
Great thanks
Benja
If you're using a webview then I would suggest using our pre-built login feature found here.
I'd like to add a Google +1 button to an iOS app that takes a link as a parameter.
Is this possible?
Thanks
The recently launched Google+ API: http://developers.google.com/+/overview has Objective C support: http://developers.google.com/+/downloads
I would research Facebook Like button in iOS, as right now the solutions for using the +1 and the Like buttons inside of an iOS app are probably similar since the same thing is being done (using a website-centric tool inside of an iOS app.)
The following link describes a way to use a webview to implement the Like button, and I don't think it would be too hard to adapt it for the +1 button. Caveat is that there are some usability issues to overcome with the Login itself (with the FB version), although admittedly I don't know exactly how Google handles a user who isn't logged in when they click the +1.
http://angelolloqui.blogspot.com/2010/11/facebook-like-button-on-ios.html
The easiest way of showing the Google+1 button is, first download the google+ ios sdk and then include it in your xcode project. After the previous step now drag a button on to xib file. After that try to change the custom class of the button to GPPSignInButton (You can change the custom class of the button from the right hand side property window). Then in the .h file of controller create an IBOutlet of type GPPSignInButton and then from the file's owner assign that IBOutlet to the button dragged on xib.
Now whenever you will run the application you will se google+1 button on ur xib and through this button we can perform signIn activity.
Details
https://developers.google.com/+/mobile/ios/sign-in