VB Help: Fetch/Load Facebook Profile Picture
2014-01-11, 07:09 PM, (This post was last modified: 2014-01-11, 07:40 PM by dahilan01.)
#1
Hello guys I just want to ask who know how load the profile picture of any Facebook profile link to visual basic "Piturebox".
Like this one
[Image: 4515.png]

I already get the code here: http://www.cpaelites.com/Thread-VB-codes-Please-help

But the code on that thread can't load the picture on other Facebook profile link..

But the fake software on the photo above can load picture to any Facebook profile link..

I hope someone can help me to fix this one.. Thank you in advance..

Anyone can help me please? :(

How much you can take and keep moving forward.
That's how winning is done!

Reply
2014-01-11, 10:35 PM,
#2
Up for this one.. Please anyone can help me..

How much you can take and keep moving forward.
That's how winning is done!

Reply
2014-01-12, 01:04 AM,
#3
i made this app for an cpae user :P and he paid me :)
Reply
2014-01-12, 01:05 AM,
#4
it is simple, visit facebook graph. Long time ago it was the method!
Reply
2014-01-12, 01:10 AM,
#5
Go on Facebook and go to developers and read a bit more about graph. You can fetch a lot of good things.
Reply
2014-01-12, 06:07 AM,
#6
(2014-01-12, 01:05 AM)klaatu97 Wrote: it is simple, visit facebook graph. Long time ago it was the method!
(2014-01-12, 01:10 AM)Pankage Wrote: Go on Facebook and go to developers and read a bit more about graph. You can fetch a lot of good things.
but I can't find the VB Code needed :( I'm new to VB Code and didn't know much about here.. I hope you can help me

(2014-01-12, 01:20 AM)Boom Wrote: I haven't tested this, but it should work.

Code:
Public Class Form1
dim source as string
Public Sub Button1.Click
Dim wc as new Net.Webclient()
source = wc.downloadstring("profile url here")

dim pic as string = getbetween("source", "<img class=""profilePic img"" src=""", """ alt=", 0)

PictureBox1.Image = New System.Drawing.Bitmap(New IO.MemoryStream(New System.Net.WebClient().DownloadData(pic)))

Private Function GetBetween(ByVal input As String, ByVal str1 As String, ByVal str2 As String, ByVal index As Integer) As String
    Dim temp As String = Regex.Split(input, str1)(index + 1)
    Return Regex.Split(temp, str2)(0)
End Function

I got the GetBetween function from HF.
Sir what VB code you use? I got a lot of errors when I used your code.. and how I can make the ("profile url here") = Textbox1.Text? I want someone put the profile url on textbox.. Thank you

How much you can take and keep moving forward.
That's how winning is done!

Reply
2014-01-12, 07:10 AM,
#7
code won't work because you need to login to facebook first :) goodluck kababayan :)
Reply
2014-01-12, 07:23 AM,
#8
(2014-01-12, 07:19 AM)dahilan01 Wrote: ui Pilipino ka po pala.. sir naka log in po ako eh.. bale pano ko din gagawin, gusto ko kasi yung makukuhang Picture na malalagay sa Picturebox ay yung FB profile link na ilalagay sa TextBox.. sana po matulungan nyo ako.. Thanks in advance

speak in english kababayan this is english forum hehe.. BTW the account should be logged-in successfully in app's web browser before the app can start to scrape pictures :)
Latest Thanks - View all

thapriceless(2014-01-12 08:13 AM) 
Reply
2014-01-12, 07:28 AM,
#9
(2014-01-12, 07:23 AM)Victor Wrote: speak in english kababayan this is english forum hehe.. BTW the account should be logged-in successfully in app's web browser before the app can start to scrape pictures :)

:'( Sorry I'm slow.. how to do that? The apps on image on first page I post can load the picture on VB apps even I'm only logged in on a browser.. I hope someone can help me to do that..
Put the profile link on Textbox1, and when I hit the button1 it will load the profile picture on Picturebox1..

How much you can take and keep moving forward.
That's how winning is done!

Reply
2014-01-12, 07:33 AM,
#10
(2014-01-12, 07:28 AM)dahilan01 Wrote:
(2014-01-12, 07:23 AM)Victor Wrote: speak in english kababayan this is english forum hehe.. BTW the account should be logged-in successfully in app's web browser before the app can start to scrape pictures :)

:'( Sorry I'm slow.. how to do that? The apps on image on first page I post can load the picture on VB apps even I'm only logged in on a browser.. I hope someone can help me to do that..
Put the profile link on Textbox1, and when I hit the button1 it will load the profile picture on Picturebox1..

your PC's browser is different in VB App's browser. In this case you should be login in App's web browser for it to be able to scrape the images
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 32 10,339 2017-10-28, 04:51 PM
Last Post: waiphyoe
  [HELP] Cpagrip Content Locker ( On Page Load ) ashu55 3 1,209 2016-07-06, 12:36 AM
Last Post: ashu55
  Facebook Like Pop up User 4 1,237 2016-06-30, 01:59 AM
Last Post: insomniac
  My LP graphics/images takes a while to load upon opening (~5 second) Vrasquedrach 9 936 2016-06-22, 05:20 PM
Last Post: Vrasquedrach
  Fake Facebook Comment Plugin? kach 8 4,235 2016-06-14, 09:45 PM
Last Post: Dragosh





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top