Z
Z
zayko2011-12-22 07:39:58
css
zayko, 2011-12-22 07:39:58

Facebook, Social plugins, Comments. css customization

The site has a dark background. Fb comments look bad. The css parameter is provided in the fb comments.

<fb:comments href="http://example.com" num_posts="2" width="500" css="http://example.com/my.css?1"></fb:comments>


However, this option does not work a little more than completely.

Here is the proof vs. dock .

Who did it? Maybe there are sites on the note that have successfully picked up their styles?

PS: There is an assumption that css is only picked up if the user is identified / there is an app key. But fb blocked the sms sent to me. Failed to check.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
D
Dmitry Kuzmin, 2011-12-22
@Dimkaa

It should be picked up after identifying your application. why do you have a problem with identification and key?

D
Dmitry Kuzmin, 2011-12-22
@Dimkaa

Weird. Have you linked your mobile to your Facebook profile? Not to the application, but to the profile. I made several designs for social plugins, but I never remember that when creating an application, it asks for a phone number.

D
Dmitry Kuzmin, 2011-12-22
@Dimkaa

Try to identify yourself by phone. A call will come, like they will tell you the code over the phone.

Z
zayko, 2011-12-22
@zayko

Ouch. I broke the habr)

Z
zayko, 2011-12-22
@zayko

got appId, secret.
I insert comments like this:
<html lang='ru' xml:lang='ru' xmlns:fb='http://ogp.me/ns/fb#' xmlns='http://www.w3.org/1999 /xhtml'>
<fb:comments profile_id="11170925" css=" mysite.ru/stylesheets/fb.css?1 " href="mysite.ru/section/fashion/358" num_posts="10" width="500 »></fb:comments>

Z
zayko, 2011-12-22
@zayko

I am not guilty. honestly )

Z
zayko, 2011-12-22
@zayko

<html lang='ru' xml:lang='ru' xmlns:fb='http://ogp.me/ns/fb#' xmlns='http://www.w3.org/1999/xhtml'>
[script src=" connect.facebook.net/ru_RU/all.js#xfbml=1 " type="text/javascript"][/script]
[script type='text/javascript']
//<![CDATA[
FB.init("a1aa51c804345effc3611dabc35f0da");
//]]>
[/script]
<fb:comments profile_id="11170925" css="mysite.ru/stylesheets/fb.css?1" href="mysite.ru/section/fashion/358" num_posts="10 » width="500"></fb:comments>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question