just thinking about other solutions:
1- why don't you open the page in your application in a web browser so that you can scan the html to determine if it is a facebook login page or a desired βLikeβ page? I mean: crawl the page, indicate a boolean if it is not like a page, and when the login request is approved, ask your internal web client to open the url of desire. Perhaps using the shouldOverrideUrlLoading (WebView view, String url) SDK method or something like that.
2. Why don't you use facebook sdk to check your Facebook connection and then send it to your page? If he has the application installed, sdk will automatically open the facebook application and register the user. Then, when it returns to your application, click the Like button in onSessionStateChange or more.
What do you think?
source share