Securely Store Facebook Image URLs (Rails 3)

BACKGROUND . I use Facebook Connect to collect the image URL of Facebook users (i.e. http://graph.facebook.com/111111/picture ), where 111111 is each Facebook user id.

OBJECTIVE: . To save the image URL so that the Facebook identifier in the URL is not externally visible (this means that another user will not be able to determine who the user is by simply right-clicking “copy image URL” and looking at the identifier in Url)

0
source share
2 answers

The answer can be found here: Get URL redirection in Ruby

+1
source

Write a script that will download the image from the FB server and then issue the image.

IE: www.yoururl.com/viewimage?id=UNIQUE_TOKEN_ASSOCIATED_WITH_FB_ACCOUNT

So, when someone sees the URL, he simply sees a unique token that maps to the FB ID in your database.

+1
source

All Articles