Hello guys,

Have anybody seen a program with a small button (Like us on Facebook)? well i would like to accomplish something like that on one of my projects. to be honest i haven't click on any program with that little like button.. So i was wondering if they just add a simple one line of code (GoToSite).. or do they make it more advance that automatically they get the like when somebody click on their litle like button? can anyone clarify this for me?
Thank You So Much in Advance.

Dani AI

Generated

As asked and as noted, the little "Like us on Facebook" control in desktop apps is usually one of two things: a simple link that opens the Facebook page in the system browser, or an embedded web control that hosts Facebook's Like plugin. The actual like action is performed by Facebook's UI and the authenticated user — apps cannot silently "give" a like on a user's behalf.

Common, practical options:

  • Shell out (fast, reliable): open the Facebook page in the default browser so the user clicks the official Like there.
' VB.NET
Process.Start("https://www.facebook.com/YourPage")
  • Embedded web control (integrated UI): place a small WebBrowser control and load an HTML fragment that either links to the page or contains Facebook's Like plugin (iframe or JS SDK). Example pattern:
' VB.NET: load a small HTML string into the WebBrowser control
Dim html As String = "<html>...HTML with a link or plugin...</html>"
WebBrowser1.DocumentText = html

Important constraints and troubleshooting notes: the like must be done through Facebook's interface while the user is authenticated. Platform rules prevent apps from programmatically creating likes for a user. When embedding a browser control, the control may not share cookies with the system browser, so the user might need to log in inside the control. Older WebBrowser controls use legacy Internet Explorer engine emulation and can fail to run Facebook's JavaScript; modernizing the control or opening the system browser avoids many headaches. Do not try to simulate clicks or post likes through undocumented methods — use Facebook-provided plugins or official dialogs for sharing/interaction to remain compliant and reliable.

Recommended Answers

All 2 Replies

are you planning to embed a browser in your application or did you want to shell out.

Hi Chris,

Thank you for replying my question...
Thats what i was thinking, or thats what i was asking,
I never done this, i mean yes, but shell out like you said,
But my dough was if they just shell out, or if they make it
be more advance so when ever a user click on their Like button
they'll get a like in their facebook profile like button or not.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.