What's mechanism of emoticon code on facebook chat? - html

I have found the funny site there :D
On your facebook chat dialog, you can push the emoticon photo code with the text on photo description like some facebook api code.
By using FB Photo Zoom google chrome plug-in, when I drag on each position on emoticon, they contain many emoticon codes like [[xxxxxxxxx]]
So my question is: how does the mechanism of Facebook chat allow users to post photos like this? Can we make the local images for use like this?

Those are not emoticon codes, they're simple FB page or profile IDs.
e.g.
[[youtube]] // go to facebook.com/youtube
[[100001939588739]] // go to http://www.facebook.com/profile.php?id=100001939588739
[[biker.abhinav]] // go to http://facebook.com/bikerabhinav
All those rage faces, or any image which get replaced are actually page/profiles. [[xxxx]] just shows their thumbnail image.

My guess is that there is javascript that replaces those codes with images stored on the server (the code is obfuscated, so I can't be sure).
You could do the same, you would just have to host the images yourself, and write a simple javascript file.

Related

Web preview when posting on Facebook/Linkldin

I got a little issue,
when I share my portfolio in Facebook or Linkdin I get a preview of the web as an image but with a wrong image(one of the images included in the code itself).
how can I fix that so that the preview image will be the the web image?
thanks
If you've already generated the image, I think you need to use this: developers.facebook.com/tools/debug to rescrap it and try and get FB to pull in the correct image.
There's a section, in the screenshot, that allows you to bulk clear FB caches if it's more than one URL you're having issues with, if it's just the one, the first tab should be what you need.

Direct link or html code to get facebook likes by cliking in a picture

I need a method to get likes for my facebook page directly by cliking on a picture
I mean when a visitor of my website click in a specific picture he automaticaly likes my page
with facebook social plugin I got this link but it doesn't make you liking the page automaticaly you need to click the like button and confirm
I don't know how to get that link or html code , "I visited a website uses this method"
I hope you can help me
I researched this as well but I can confirm you that, since this could be easily abused to mislead the client and obtain a load of likes, it is not possible in an official, Facebook-approved way.

facebook comments box plugin does not have view xx comments in website posts

I'm a beginner in facebook.
I try to add the facebook comments box to each of my blog post, i limit it to show 2 comments from the plugins, from the facebook comments box plugin site, they set the url to example.com and it show a whole different UI from what i got.
More importantly, there is no view XX comments after 2nd comment, even i added 20 comments to it.
May i know how can i solve it? is it some setting that i need to set in my facebook app or use the graph api, i know that i can get the json from the facebook graph site as mentioned in the facebook blog developers.facebook.com/blog/post/490/
if i need to solve using json way, how do i append the remaining comments inside the website where it is using iframe.
i wish to have a easier solution like just changing setting inside my facebook app, rather than code an "View xx comments" button to do ajax call and append the result to the dom myself.

Return all links to photos in a flickr set

I want to use all the photos in a Flickr set and in order to do so (and not infringe upon copyright etc) have to link back to the owner. I can't seems to find anything in the Flickr API to return the html code for each individual photo.
At present I'm faced with copying and pasting all the html code from the "share" button. Not a pleasant prospect.
Any help appreciated
I'm assuming you just want a link back to the images or photosets?
See here: http://www.flickr.com/services/api/misc.urls.html
There are examples for linking to images directly, individual photos, photosets, etc.

Dynamically updating Images to Facebook Page

I want to dynamically update the three images from "Trend Alert" in the EDM below:
http://sophiehart.createsend4.com/t/ViewEmail/r/D3501506593F4120/5AA0D88279FE59B738A555EB6E97B45B
To this Facebook iFrame.
http://www.facebook.com/apps/application.php?id=198582036826535&sk=app_198582036826535
I'm hoping someone knows a way to update these automagically - I don't want to have to manually change them every week.
The problem as you can see is that the EDM above spits out a different dynamic link every week.
Any one worked on something similar to this before?
This Facebook page currently features the same technique (The Latest section) - so if anyone can shed some light on it that would be great!
http://www.facebook.com/rachelzoe
EDIT: I've created the html email template and have got the iframe working - but i'm unsure how to link the images to the Facebook as the link to the html email (campaign monitor) will change weekly?
LINK to EDM: http://sophiehart.createsend4.com/t/ViewEmail/r/D3501506593F4120/5AA0D88279FE59B738A555EB6E97B45B
LINK TO FB: http://www.facebook.com/apps/application.php?id=198582036826535&sk=app_198582036826535
You can create a Facebook Application and install it as a tab in your client's Facebook Page. This tab will render an iframe with content from any URL that you specify. This way, you can do anything you want with your webpage (e.g. display 3 dynamic images), and it will be embedded in your client's Facebook Page.