-
Sep 27th, 2013, 09:20 AM
#1
Thread Starter
Hyperactive Member
Single URL along with Get paramater for social buttons
Greetings,
hope every one is fine on this community..
I am facing a problem, that's why i am here for some help.
i need to implement Facebook, tweet and G+ button my on my app (windows software)
but i can't figure out a way.. because web version have many settings like Java script, DIV etc etc. But i need a single url format so, that i can call from my app.
example: i have place a fb like image on my app and when user click on it. it will use following windows API call to open that link/like in user default browser
Code:
ShellExecute hWnd, "open", "http://www.facebook.com/like?herf=myURL", vbNullString, vbNullString, 1
hope that make sense
i need for all above 3 button (fb like/tweet/G+)
any help would be highly appreciated..
thanks in advanced
best regards
-
Sep 28th, 2013, 01:53 AM
#2
Re: Single URL along with Get paramater for social buttons
VB.NET MVP 2008 - Present
-
Sep 29th, 2013, 11:06 PM
#3
Thread Starter
Hyperactive Member
Re: Single URL along with Get paramater for social buttons
any one? any help please?
-
Sep 30th, 2013, 01:47 AM
#4
Re: Single URL along with Get paramater for social buttons
It seems as if I am invisible, or my posts are... The links I gave shows the code that you should implement ( whether from the web, or your desktop app - although a bit more difficult )
VB.NET MVP 2008 - Present
-
Sep 30th, 2013, 02:00 AM
#5
Thread Starter
Hyperactive Member
Re: Single URL along with Get paramater for social buttons
Originally Posted by HanneSThEGreaT
It seems as if I am invisible, or my posts are... The links I gave shows the code that you should implement ( whether from the web, or your desktop app - although a bit more difficult )
thanks again for your reply sir..
yes sir, i got what you post last time, but that's not what i am asking for
all those are for web button. I can't implement in my desktop app? because the have Javascript/<DIV> etc etc..
can yo help me on this matter please?
thanks in advance...
best regards
-
Sep 30th, 2013, 02:31 AM
#6
Re: Single URL along with Get paramater for social buttons
OK, well, I see your fear, but you are makin use of the ShellExecute API, so all you need to supply is the link ( that gets generated by FB, Twitter, or G+ ) on those pages I have linked you to in post #2.
This seems to work fine for me :
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Command1_Click()
'facebook link
ShellExecute hwnd, "open", _
"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.vbforums.com&width=450&height=80&colorscheme=light&layout=standard&action=like&show_faces=true&send=true", _
vbNullString, vbNullString, 1
End Sub
Private Sub Command2_Click()
'twitter
ShellExecute hwnd, "open", _
"https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Ftwitter.com%2Fabout%2Fresources%2Fbuttons&text=Twitter%20%2F%20Twitter%20buttons&tw_p=tweetbutton&url=http%3A%2F%2Fwww.vbforums.com", _
vbNullString, vbNullString, 1
End Sub
Private Sub Command3_Click()
'google
End Sub
Private Sub Command4_Click()
'facebook share
ShellExecute hwnd, "open", _
"https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.vbforums.com", _
vbNullString, vbNullString, 1
End Sub
You should obviously just change the url from VBForums to your URL.
I hope this helps!
VB.NET MVP 2008 - Present
-
Sep 30th, 2013, 02:38 AM
#7
Thread Starter
Hyperactive Member
Re: Single URL along with Get paramater for social buttons
Originally Posted by HanneSThEGreaT
OK, well, I see your fear, but you are makin use of the ShellExecute API, so all you need to supply is the link ( that gets generated by FB, Twitter, or G+ ) on those pages I have linked you to in post #2.
This seems to work fine for me :
You should obviously just change the url from VBForums to your URL.
I hope this helps!
wow! sir, thanks a lot.. you are really so helpfully.. just one more . please? i think you missed the g+ (Google1+) button code? would you please also do that ?
thanks in advance..
best regards
-
Sep 30th, 2013, 03:19 AM
#8
Re: Single URL along with Get paramater for social buttons
That one seems to be working different, I'll try to see what I can come up with. In the meantime, see if you can implement the above code
VB.NET MVP 2008 - Present
-
Oct 2nd, 2013, 12:58 AM
#9
Thread Starter
Hyperactive Member
Re: Single URL along with Get paramater for social buttons
Originally Posted by HanneSThEGreaT
I'll try to see what I can come up with.
there sir, is there any update about G+ yet? i hope so..
thanks again for your efforts to help out me
thanks in advance..
best regards
-
Oct 2nd, 2013, 10:36 AM
#10
Thread Starter
Hyperactive Member
Re: Single URL along with Get paramater for social buttons
I think i found the solution for G+, it's not that hard, but if you can confirm where that also work on your end too
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Command1_Click()
'facebook link
ShellExecute hwnd, "open", _
"http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.vbforums.com&width=450&height=80&colorscheme=light&layout=standard&action=like&show_faces=true&send=true", _
vbNullString, vbNullString, 1
End Sub
Private Sub Command2_Click()
'twitter
ShellExecute hwnd, "open", _
"https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Ftwitter.com%2Fabout%2Fresources%2Fbuttons&text=Twitter%20%2F%20Twitter%20buttons&tw_p=tweetbutton&url=http%3A%2F%2Fwww.vbforums.com", _
vbNullString, vbNullString, 1
End Sub
Private Sub Command3_Click()
'google ' updated here is my code.. please check..
ShellExecute hWnd, "open", "https://plus.google.com/share?url={URL Goes Here}", vbNullString, vbNullString, 1
End Sub
Private Sub Command4_Click()
'facebook share
ShellExecute hwnd, "open", _
"https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.vbforums.com", _
vbNullString, vbNullString, 1
End Sub
however, once again thanks a lot for your kind help
-
Oct 2nd, 2013, 10:51 AM
#11
Re: Single URL along with Get paramater for social buttons
Hi!
Well, I have been swamped at work today.
Yes, that code for G+ works perfectly! Great work!
Glad I could help
Hannes
VB.NET MVP 2008 - Present
-
Oct 24th, 2013, 11:29 AM
#12
Thread Starter
Hyperactive Member
Re: Single URL along with Get paramater for social buttons
Originally Posted by HanneSThEGreaT
Hi!
Well, I have been swamped at work today.
Yes, that code for G+ works perfectly! Great work!
Glad I could help
Hannes
sir, you helped me on this project a lot..so, i think you can also helped on on my below project/issue.. too..
would you please check and confirm?
Code:
http://www.vbforums.com/showthread.php?718135-Use-PIPE-%28STDIN-STDOut%29-to-port-images-to-ffMPEG-to-Create-video
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|