Android Tutorial [TUTORIAL] Post to Facebook Wall via B4A app.

Discussion in 'Tutorials & Examples' started by NJDude, May 11, 2012.

  1. NJDude

    NJDude Expert Licensed User

    What about the SITE URL (see picture on my previous post), what do you have there?
     
  2. derez

    derez Expert Licensed User

    I guess because it is hosted by Heroku, there is no place to put it.
     
  3. derez

    derez Expert Licensed User

    I opened a tab and saw this, is the fact that there is nothing there may be the reason ?
     

    Attached Files:

  4. NJDude

    NJDude Expert Licensed User

    You have to create the Facebook app as a WEB APP not a an Android app.
     
  5. derez

    derez Expert Licensed User

    So it is OK the way it is. If I find a site (other than Heroku) to be the mediator, what do I need to put there - a php or similar application ?
    Do you have an example of such ? I need the usual - to post results of a game...

    Edit: I tried to create a new app in FB without asking for a host, but I don't get the category and site url like in your example...

    edit: I have found the site URL in this tab "Website with Facebook Login" but no category

    Edit: I put the same address of heroku, now I get a simple error message saying " An error occurred, try again later"

    EDIT: Changed the site address to be with www and now it ask to login..... AND it works !
    Thank you Njdude !
     

    Attached Files:

    Last edited: Apr 20, 2013
  6. NJDude

    NJDude Expert Licensed User

    An example is attached to the first post.
     
  7. derez

    derez Expert Licensed User

    Problem solved, see previous post ! Thank you !!!
     
  8. NJDude

    NJDude Expert Licensed User

    Great!.
     
  9. derez

    derez Expert Licensed User

    Now to the question of deleting the cache for a new login process, by code.
    I listed the files in File.DirInternalCache and got these:

    webviewCacheChromiumStaging
    webviewCacheChromium

    Deleting them left the second file and didn't do the required effect.

    Does anybody know how it can be done ?
     
  10. NFOBoy

    NFOBoy Active Member Licensed User

    WebView not staying displayed with code as shown

    So, I have the app created, and have the id/secret/redirect setup,
    but I am not getting expected results when I run through.


    Had to change this line from

    Code:
    If Url.StartsWith("http://m.facebook.com/login.php"Then
    to

    Code:
    If Url.StartsWith("https://m.facebook.com/dialog")
    to get the webview to stay visible


    And the url returned when it is all done looks like this (modified to keep this from actually being used by someone to post on my FB account!)

    Code:
    http://iii.m.webs.com/site/mobile?dm_path=%2Findex.htm&fw_sig_tier=0&fw_sig_url=http://iii.love.com/&fw_sig_api_key=522b0eedffc1374949085nf3a1&fw_sig_premium=0&fw_sig_social=0&fw_sig_permission_level=0&fw_sig_access_token=e37c25c468ebaafadfdfoj848e524fc7&fw_sig_time=1370170181271&fw_sig_is_admin=0&fw_sig_permissions=none&fw_sig_session_key=517c5f991daf4e64adc2c0625dfjojeiojer2c89fa8607a9888f6f0f2be21-93242559&fw_sig_site=93242559&fw_sig=fbd96cf2d59doijdfdfc0139a5295216&fb_sig_network=fw#3132
    Did something big change? Or did I mess up the application process?

    I put in my site url in the Website with Facebook Login, and then put that in the app domains on the basic info page... and that was about it.

    ????

    Ross
     
  11. luke2012

    luke2012 Well-Known Member Licensed User

    Post in specific FB Page

    It's possible to customize this sample in order to upload a post with Text and Image to a specific Facebook page?
     
  12. marcel

    marcel Active Member Licensed User

    Where is the URL for? What is the meaning of the URL?
     
  13. MaxApps

    MaxApps Active Member Licensed User

    Is it possible to upload text together with the picture and have a link in it as well?
    I would like my user to be able to post "Just made a new highscore in appname" and if other people click on it, it links to Google Play.
     
  14. oyvinrog

    oyvinrog Member Licensed User

    This example did not work for me. I tried to change all the "http://" references into "https://". Then it worked.
     
  15. pietervdb

    pietervdb Member Licensed User

    Does this example still work? I had it working in the past but the send button seems not responding (no code change in my app).. Anyone tested this?
     
  16. figorra

    figorra Member Licensed User

    This app not work for me, because don't do nothing when I push send button..... I create a facebook developer account, web type and the secrets and test app are done........

    What's the problem?
     
  17. NJDude

    NJDude Expert Licensed User

    This is an old code, I would suggest you use any of the Facebook libraries available.
     
    figorra likes this.
  18. stp

    stp Member Licensed User

    Example does not work...
    Picture taken and after send nothing happens !!!
     
  19. NJDude

    NJDude Expert Licensed User

    Facebook changes the API frequently and without warning, I suggest you use one of the FB libraries available.
     
  20. stp

    stp Member Licensed User

    Yes i know they plan to update to 2.1
    Is here in the forum any working example where i can login an post to my fb profile ?
     
    JohnD likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice