I have always wanted to add Facebook share buttons to my applications, but the problem that I have is that they all look different. I see sites like this that have custom designed share buttons. Does anybody know a good tutorial, or have any pointers, about how to tackle this?
相关问题
- facebook error invalid key hash for some devices
- LoginActivty with Firebase & Facebook authenticati
- facebook “could not retrieve data from URL”
- setRequestHeader Content-Type causes POST request
- Sharing to Facebook Stories
相关文章
- Facebook login for group members
- The method FB.api will stop working when called fr
- React native deep linking vs Facebook SDK conflct
- UIActivity with no settings for Facebook
- facebook send API Error Code: 100 API Error Descri
- Can't use Facebook Account Kit: Error inflatin
- Facebook API error subcode 33
- Devise + Omniauth: undefined method `user_omniauth
Sharing something one facebook is quite easy, here is the HTML for my custom share button.
Where all the {{variables}} are to be replace by correct value :
fbapp_id
is the id of your facebook application.link_ur
l is a link attached to the shared content (like a link to your site) andshare_message|urlencode
is the message that is shared and it needs to be urlencoded.Also here some css to style this like a real facebook button :
But I let you the pleasure of customizing as you like, the important part being the href of the a tag
Does it answer your question ?