Results 1 to 2 of 2

Thread: One Observation With the Showcase

  1. #1

    Cool One Observation With the Showcase

    While playing the showcase sample, I notice a scenario lead to an exception. After a Facebook connection is setup, I remove the Spring Showcase from my Facebook apps page. While I access the URL /spring-social-showcase/connect/facebook and have this message "Spring Social Showcase is connected to your Facebook account. Click the button if you wish to disconnect", any Facebook communication activities will lead to an exception. It is the same if try to post a feed after the publishing right is revoked. I don't know Spring Social good enough to solve this problem yet.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  2. #2
    Join Date
    Aug 2004
    Posts
    1,067

    Default

    Right...if you disconnect on FB's end, there's currently no way that Spring Social would be aware of that and so it will continue to use an access token that is no longer valid.

    The exception is expected in this scenario and it is expected that the application handle it in whatever way is appropriate to that application (perhaps showing an error page, maybe taking the user back to the connect page, etc). The main problem here is that the showcase sample doesn't handle the error...but Spring Social is doing the right thing to report the problem. This is the subject of https://jira.springsource.org/browse/SOCIAL-235, but as indicated there, no work has been done on that yet.

    Facebook also supports a callback so that when someone revokes a connection at Facebook, the application can be notified and disconnect on their end. This isn't supported in Spring Social yet, but is the subject of https://jira.springsource.org/browse/SOCIALFB-69.
    Craig Walls
    Spring Social Project Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •