Hello guys how I can make the VB download the data on a particular link like "www.facebook.com/username" to get the profile image and name using my "default browser"?
Example my default browser is Mozilla Firefox 26.0, I want the VB to download or fetch the profile picture of the link using my "default browser" because we know that "default browser" is different from "VB browser"
Here is the code I'm using..
Thank you
Example my default browser is Mozilla Firefox 26.0, I want the VB to download or fetch the profile picture of the link using my "default browser" because we know that "default browser" is different from "VB browser"
Here is the code I'm using..
Code:
Public Function GetFacebook() As Facebook
Try
Dim wc As New System.Net.WebClient
Dim value As String = wc.DownloadString(Profile)
Dim result As New Facebook()
result.Username = GetBetween(value, "<title id=""pageTitle"">", " | Facebook</title>")
result.ProfileImage = GetBetween(value, "<img class=""profilePic img"" src=""", """ alt=")
Return result
Catch
Return Nothing
End Try
End Function