>
Facebook integration : shows a facebook dialog box...
Welcome, Guest

by ekta on Monday, 07 March 2011
Facebook integration : shows a facebook dialog box instead of permission


Integrating facebook with java with Graph API does not ask for permission directly, it opens a facebook box, on clicking the dialog box it redirects to the permission

 Here is the simple code to redirect page directly yo the permission page:

String returnURL="http://apps.facebook.com/yourwebpage/";

externalUrl="https://graph.facebook.com/oauth/authorize?client_id="+app_id+"&redirect_uri="+returnURL+"&scope=email,read_stream";

 PrintWriter servletOutput = res.getWriter();

servletOutput.println(
                        "<script type="text/javascript">n" +
                        "<!--n" +
                        "window.top.location = "" + externalUrl + "";n" +
                        "//-->n" +
                        "</script>n" +
                        "<noscript>n" +
                        "Your browser doesn't seem to support Javascript redirection. n" +
                        "Please click <a href="/" + externalUrl + "">here</a> to run youwebpage directlyn" +
                        "</noscript>n");

Thats all, this code will automatically redirects page to the permission and then returns back to your application.

 



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering