Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know two solutions: Java and JavaScript</p> <p>Java : a. servlet code (don't forget to import relevant jar's) :</p> <pre><code>String url="http://www.facebook.com/login.php?api_key=YOUR_API_KEY&amp;v=1.0"; url+="&amp;fbconnect=true&amp;return_session=true&amp;req_perms=offline_access,status_update"; url+="&amp;next=http://YOUR_FaceBookCallback_SERVLET"; response.sendRedirect(url); return; </code></pre> <p>//You will get prompt to log in to facebook and permit the extended permissions</p> <p>b. Don't forget to define your ConnectUrl(in your facebook account application) as <a href="http://YourUrlFromWhereDoYouTurnToTheServletAbove" rel="nofollow noreferrer">http://YourUrlFromWhereDoYouTurnToTheServletAbove</a></p> <p>c. make another servlet : YOUR_FaceBookCallback_SERVLET (see above) with this code:</p> <pre><code>protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String session = request.getParameter("session"); //from this string you can obtain your infinite session_key.In order to do this, parse this string as JSON. //Save it in the database or in the other data storage response.sendRedirect(ThePlaceThatYouWant);} </code></pre> <p>d. Use this secret session_key like this:</p> <pre><code>FacebookXmlRestClient client = new FacebookXmlRestClient(YOUR_API_KEY, FACEBOOK_APPLICATION_SECRET,SECRET_SESSION_KEY); client.setIsDesktop(false); client.users_setStatus("YourMessage"); </code></pre> <p>If anybody wants the JavaScript solution(the big hole in security) write me</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload