News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Any ideas on how to make image attach facebook compatible?

Started by distante, March 17, 2012, 07:38:04 PM

Previous topic - Next topic

distante

If I put this http://www.simplemachines.org/community/index.php?action=dlattach;topic=471506.0;attach=199454;image in facebook, isn't caching as an Image, It doesn't get showed, but If I embed that in a Img is showed...


Facebook is debuging the image link and redirecting to the forum (even when guest have permissions for see attachments).
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.simplemachines.org%2Fcommunity%2Findex.php%3Faction%3Ddlattach%3Btopic%3D471506.0%3Battach%3D199454%3Bimage
Quote
Response Code:   200
Fetched URL:   http://www.simplemachines.org/community/index.php?action=dlattach%3Btopic%3D471506.0%3Battach%3D199454%3Bimage
URL canónica:   http://www.simplemachines.org/community/index.php

Any Idea of how to do the attach img facebook friendly?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

i got it

Quote
if(strstr($_SERVER["REQUEST_URI"], '%3D')) {

   $_SERVER["REQUEST_URI"] = urldecode(http_build_query($_SERVER["REQUEST_URI"]));

}

solves the issue just add it to the top of index.php to try an test it

maybe not :D
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

distante


SA™

half and half lol i can get the debugger to display the correct url but it still dont show the pic on facebook guest hve permission to see atachments aswell
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: