简体   繁体   English

如何获得嵌入徽标的Twitter和Facebook的方形个人资料图像?

[英]How to get Square Size Profile Image of Twitter and Facebook with Logo Embedded?

Hi 你好
while i go through this site 当我浏览这个网站时
(http://www.talenthouse.com/creativeinvites/preview/ae2dd0ca9ac9d1881f27132df12b6dd1/219), (http://www.talenthouse.com/creativeinvites/preview/ae2dd0ca9ac9d1881f27132df12b6dd1/219),
i came to see that while i login with help of either by twitter or facebook ,with my profile image, the F logo for Facebook and T Logo for twitter is embedded, how can i do that in PHP for facebook with help of Graph API?? 我发现我在通过twitter或facebook的帮助下登录时,使用我的个人资料图像嵌入了Facebook的F标志和twitter的T标志,我该如何在Graph API的帮助下在Facebook的PHP中做到这一点? ?

If you look at the source of that page, you will see that the image is not actually embedded. 如果您查看该页面的源代码,将会看到该图像并未真正嵌入。 They are just using css/html to overlay the "F"/"T" image: 他们只是使用css / html覆盖“ F” /“ T”图像:

<a>
  <span class="photo" style="background-image: url(https://graph.facebook.com/4/picture);" />
  <img class="fb-decorator" src="http://assets.talenthouse.com/images_01/fb-member.jpg">
  <strong class="name">Mark</strong>
</a>

They may also have some special css applied to those elements - try inspecting it with Firebug or Chrome Dev tools - but you can see that its not embedded. 他们可能还会对这些元素应用一些特殊的CSS-尝试使用Firebug或Chrome Dev工具对其进行检查-但您会发现它没有被嵌入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM