w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Facebook like buttonto like a particular wall post (photo, video, link, etc) of my facebook page?
The middle response of Facebook Video Like Button Help? seems to indicate Facebook will automatically embed a like button into the video you upload to them (rather than linking to an external video). Also this article seems to confirm it: http://yourinternetbusinesslink.com/facebook-like-button-video/

Categories : Facebook

Facebook doesn't detect video while sharing my own page
Do you have HTTPS URLs for your video files in the OG meta tags as well? You will need HTTPS sources as well, since most Facebook users surf over HTTPS already (and Facebook is in the process of getting the rest of them there).

Categories : Facebook

Can we authenticate facebook user which view page in UIWebView?
I also faced the same problem for liking pages i found this https://github.com/brow/FacebookLikeView it is very help full go through this it shows how to like face book pages by using web view hope this helps

Categories : Objective C

How does facebook, google+ come up with video thumbnail when typed in url of youtube video?
Simple, just get the ID of the video from YouTube and the sequence number of the image you want and plug them into [VIDEOID] AND [SEQNUM] respectively in the following URL: http://img.youtube.com/vi/[VIDEOID]/[SEQNUM].jpg So for example for this URL: http://www.youtube.com/watch?v=dOwZZyGJ9aQ the thumbnails can be acquired by going to: http://img.youtube.com/vi/dOwZZyGJ9aQ/0.jpg http://img.youtube.com/vi/dOwZZyGJ9aQ/1.jpg http://img.youtube.com/vi/dOwZZyGJ9aQ/2.jpg http://img.youtube.com/vi/dOwZZyGJ9aQ/3.jpg and so on.. Source: http://www.tonylea.com/2011/how-to-get-youtube-thumbnail-images/

Categories : PHP

Facebook Graph API batch POST_ID comment counts?
Why did facebook decide to break this? Shh, calm down, young Padawan! :-) You can use Field Expansion to achieve this. Since you want only the comment count, we will limit the number of comments returned to 1 (the minimum possible – 0 would mean no limit and therefor the default of 25(?)), and ask for the summary field of the comments as well: /facebook/feed?fields=comments.limit(0).summary(1) Only slight drawback: Since this is using the fields parameter, you have to specify other fields of the post object you want to get as well – id and created_time are included by default as you can see, but others as f.e. message you will have to specify explicitly if you want to get them returned too. Edit: Using .limit(0) is now possible directly. You will still get a data structure

Categories : Facebook

Facebook 'like' button doesn't show when linking to my Facebook page - it works for every other page
Ok. I feel like an idiot. After about a month of thinking, I was having a shower this morning and I finally figured out the problem. This Facebook page is not available to people in Thailand. I live in Thailand.

Categories : Facebook

Facebook oauth for accounts with managed page not switching (using Facebook as your page)
I'm having the same issue :( I haven't come across a solution.. except maybe to create a landing page on facebook canvas. This will prompt them to switch from "Page" to "Personal" before going through your application setup.

Categories : Facebook

How to fit the video Width & Height with respect to vitamio video view in android
From VOV IO's web-site (vitamio VOVIO - focus on Android multimedia application): Vitamio is a multimedia framework for all Android devices. Vitamio works like the Android's default MediaPlayer except that it includes much more powerful features. And it's absolutely free ! Network Protocols: The following network protocols are supported for audio and video playback: MMS RTSP (RTP, SDP) HTTP progressive streaming HTTP live streaming (M3U8), for Android 2.1+ Media formats: Many audio and video codecs are packed into Vitamio beside the default media format built in Android platform, some of them are listed below. divx/xvid wmv flv ts rmvb mkv mov m4v avi mp4 3gp Subtitles: Vitamio support the display of many external and embedded subtitle formats. SubRip(.srt) Sub Station Alpha(.ssa)

Categories : Android

Need to locate code of video from the page source and also, how to make the video playable
After reviewing the source HTML of the page, I found that when the play button clicked, there will be a ajax request to get the real video embed code. In your case, this code is <div style="z-index:0;" id="player"> <embed width="468" height="351" flashvars="servicetype=chunk&amp;streamurl=2013Jul/manoj_variuousstocks_25jul.mp4&amp;totalchunk=4&amp;videopart=&amp;server=http://videos.moneycontrol.com/web18/mc-vods/&amp;controllerpath=http://img.moneycontrol.co.in/tv/flash/control_moneycontrol_chunk_24July.swf&amp;autoplay=1&amp;showrelatedbutton=0&amp;relatedPath=http://api.moneycontrol.com/solr/solr_related_videos_multiple_test.php?id=925072%26format=player&amp;site=www.moneycontrol.com&amp;trackingurl=http://vtracking.in.com/TackImg_CHK_

Categories : Javascript

How to display a video in a web page with audio and video filters?
you can use the HTML5 tag.example: <audio controls="controls" autoplay="autoplay" src="example.mp3"></audio> and also play the video you can use the tag more information you can read about HTML5 knowledge.

Categories : PHP

Maximum download counts -> then refresh page
you are missing the () in the text if ((".amount").text() == "1") you don't need to fetch the information again with query, it is already in the var newValue: if (newValue == 1) edit: your code will only work for one download in the page because you are using the same ".amount" (i assume you meant ".downloadsleft") for all the downloads. One solution is to use the previous element intead of locating the element by class: $('.downloadLink').click(function() { var counter = $(this).prev(); var newValue = counter.text() - 1; counter.text(newValue); window.open("download.php?file={/literal}{$product.bestandsnaam_hash}{literal}"); if (newValue == 1) { location.reload(); }; });

Categories : Jquery

Using Youtube API to get list of videos and view counts by developer key using gdata
I imagine my unedited code will work for your application. Code: import requests import json import pandas key = "xxx" url = "https://www.googleapis.com/youtube/v3/search?part=snippet&order=viewCount&publishedAfter=2015-06-08T00%3A00%3A00Z&key="+key+ "&type=video&maxResults=50&relevanceLanguage=en&videoDuration=short&videoCategoryId=15,18,23,44" content = json.loads(requests.get(url).text) def get_youtoube_content(content): id = [] kind=[] description = [] title = [] time =[] for i in content["items"]: a=i["id"] b=i["snippet"] id.append(a["videoId"]) kind.append(a["kind"]) description.append(b["description"]) title.append(b["title"]) time.append(b["publishedAt"]) data

Categories : Python

Restructure view with multiple counts: output each count as one row, not one column
Since the three counts appear to be entirely mutually exclusive, you can do it like this: CREATE OR REPLACE VIEW oa_count_ii AS SELECT dl.count_type, count(ilv.count_type) record_count from (SELECT CASE level WHEN 1 THEN 'newapp_admuhflscp' WHEN 2 THEN 'apfrvw_admuhflscp' WHEN 3 THEN 'rvwtutw_admuhflscp' END count_type FROM DUAL CONNECT BY level <= 3) dl LEFT JOIN (SELECT CASE WHEN cap_udfi IN ('NEW_ENT','IRP_RVW') AND mhd_mscc = 'ADMUHFLSCP' THEN 'newapp_admuhflscp' WHEN cap_udfi IN ('APF_RVW','RVW_RVW','TUT_RVW','TU2_RVW','TUT_DC1','TU2_DC1','RVW_IRP','IRP_IIO','IRP_DC1','IIO_DC1','RECALL') AND cap_dec1 = 'No Decision' AND mhd_mscc = 'ADMUHFLSCP'

Categories : SQL

How do i make a count that counts the number of page-views?
Best way is to use some js tracker like Google Analytics.. If you do not want to track page refresh, you can use cookie or session to store timestamp of last time the increment happened, so you do not increment till it expires.

Categories : PHP

How to implement a Tracking Pixel that counts the Page Views?
The src attribute of the img tag can be either absolute image URL or relative image URL. You cannot just run arbitrary JavaScript that way. Use instead <script src="someurl/tracking.js"/>

Categories : Javascript

Pages are showing "The page you requested does not exist", but when I view content I can edit the page, but unable to view
When you edit a Node, look at the URL in your Browser. There must something like node/nodeID/edit, e.g. node/7/edit. Can you access the page if you call node/nodeId eg node/7 ? Second Point are the Permissions, go to Users -> Permissions, there are Permissions like "Views Page Content of Type article". Are this permissions set correctly?

Categories : Drupal

View a list of facebook pages that have added my facebook app
Concept: First of all get the list of the pages with- /me/accounts Then, for each page, GET- /PAGE_ID?fields=has_added_app (has_added_app indicates whether this Page has added the app making the query in a Page tab) Permissions Required: manage_pages Complete code: (PHP) $pages = $facebook->api("/me/accounts"); foreach($pages as $page) { $id = $page["id"]; $resp = $facebook->api("/".$id."?fields=has_added_app"); if(isset($resp['has_added_app'])) { if($resp['has_added_app'] == true) echo $page["name"]." has used this app<br/>"; else echo $page["name"]." has NOT used this app<br/>"; } else { echo $page["name"]." has NOT used this app<br/has_>"; } } (Or simpler way) you can

Categories : Facebook

Get Link of Video and Set It to Video view?
Try This.... video = (VideoView) findViewById(R.id.VideoView); String path = getIntent().getStringExtra("url"); Uri uri = Uri.parse(path); video.setVideoURI(uri); video.start();

Categories : Android

Facebook Graph API & django-facebook - posting links and photos to page feeds
Facebook Graph API PHP SDK posting on page as page Found it. There is a different access token for impersonating the page to post as the page. You get that from /me/accounts and use that token to post as the page. Updated working code: @facebook_required_lazy(scope=['manage_pages', 'publish_stream', 'photo_upload']) def index(request): if request.method == 'POST': form = CPYPosterForm(request.POST) if form.is_valid(): fb = require_persistent_graph(request) msg = form.cleaned_data['msg'] pages = form.cleaned_data['pages'] me_accounts = fb.get('/me/accounts') access_token = None resp = dict() for p in pages: for d in me_accounts['data']: if d['id']

Categories : Django

callback issue in Facebook while user clicks anywhere while Facebook login page is loading
Goto onCreate() method of WebDialog.java in FacebookSDK library, you will find following statement: spinner = new ProgressDialog(getContext()); add the below statement after it spinner.setCanceledOnTouchOutside(false); you are ready to go!

Categories : Android

i have videos list when i select row video will play on another view how to stop and come back for table view
MPMoviePlayerController *myPlayer declare global and init . and [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(doneButtonClick:) name:MPMoviePlayerWillExitFullscreenNotification object:nil]; And selector method: -(void)doneButtonClick:(NSNotification*)aNotification{ [myPlayer stop]; }

Categories : Iphone

Facebook Graph API, Development of Facebook page post targeting( make visible only specified country/city )
Try feed_targeting instead of targeting! All parameters which you can target like languages,cities,counties are facebook specific. You can resolve them via autocomplete data : "{'locales':[1001],'countries':[GE],'cities':[825886]}" Nice feature for automatic posting with targeting but so bad documented in the Facebook documentation...

Categories : PHP

Is there a drupal module for importing Facebook Events from a Facebook Page?
As per my knowledge, there is no such module available in Drupal as of now. But you can write a custom module for the same using following facebook graph api: https://graph.facebook.com/PAGE_ID/events You need a valid access token to return the events list for a page. Visit https://developers.facebook.com/tools/explorer to test it.

Categories : Facebook

Facebook page link open in facebook app instead of safari browser
make it this way if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString: @"fb://profile/<page id>"]]){ [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"fb://profile/<page id>"]]; }else{ [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.facebook.com/<page name>"]]; }

Categories : Iphone

Can i get facebook checkins of my facebook page with realtime updates api?
There seems to be a documentation bug in the FB docs. Instead of enabling 'checkins' for the subscription, you must enable 'feed'. Then user checkins will appear at your callback url as changed_fields=feed Then you can read the user's feed and match the timestamp in the RTU and/or look for status updates with a location/place.

Categories : Facebook

Post a link to wall of Facebook Page using Facebook sdk 3.1
This guide shows you how to get started developing with the Facebook SDK for Android. https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ Complete samples HelloFacebookSample: an all-round sample that demonstrates profile access, status updates and photo uploading Scrumptious: demonstrates the use of login, requests, pickers, picture uploads, and Open Graph publishing

Categories : Android

Obtaining Facebook Page Access Token in Facebook iOS SDK 3.5.x
Well, this is SDK 4.x, but here's what I've gotten to get it to work __block NSString *pageToken; FBSDKGraphRequest *newRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"/%@/accounts", [FBSDKAccessToken currentAccessToken].userID] parameters:nil HTTPMethod:@"GET"]; [newRequest startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { if (error) { NSLog([error localizedDescription]); }else{ //here you made need to do some debugging. not sure how it works with multiple pages pageToken = [[[result objectForKey:@"data"] objectAtIndex:0] objectForKey:@"access_token"]; }]; Again, not entirely sure how it works when a user

Categories : Misc

Post dialog on Facebook wall and Facebook page
Yes. After your above post is completed, you can simply make another call to publish on the fan page . Just like: FB.api("/pageid/feed", params); Just like this: function callback(response) { var obj = <YOUR_PARAMETERS>; if (response && response.post_id) { alert(response.post_id); FB.api("/<YOU_PAGE_ID>/feed", 'post', obj, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } }); } } Permissions required: manage_pages, publish_stream

Categories : PHP

How Do I Create Facebook Tab on My Fan Page that links to a facebook group
You can add some Javascript redirect on the tab page itself. <script language="javascript"> top.location.href = "https://www.facebook.com/groups/bettyrockyourlife/" </script> Also, sometimes it's best from a UX standpoint to tell the user what is going on. Like setting a timer of a few seconds on the JS and placing a message on the page telling the user that the page will be redirecting elsewhere.

Categories : Facebook

Get facebook video ID from url
Look up PHP Documentation for parse_str and parse_url functions. $url = 'https://www.facebook.com/photo.php?v=[ID]&type=2&theater'; parse_str( parse_url( $url, PHP_URL_QUERY ), $params ); // $params['v'] will hold the [ID] you need.

Categories : PHP

Sharing Video to facebook via FB SDK for iOS
You need to create something yourself or search for an existing solution on github (or similar). Something like a custom alert view where you can allow the user to enter text, have a thumbnail of the video which plays when tapped and a couple of buttons.

Categories : IOS

get url of video just posted on facebook
I don't know if this is the best way, but it work. in "response" i get the id of the video. I simply concact it with this String "https://www.facebook.com/photo.php?v=" and it's the full path of the video Code: @Override public void onComplete(String response, Object state) { // TODO Auto-generated method stub mDialog.cancel(); String[] temp; String UrlVideo = null; temp = response.split("""); //the response string is like "id":"404030"} or {"error":"type of error..."} if( temp[1].equalsIgnoreCase("id")){ //Video caricato e quindi anche trovato UrlVideo = "https://www.facebook.com/photo.php?v="+temp[3]; System.out.println(UrlVideo); //qui provvedo ad inoltrarlo

Categories : Android

Download a Facebook Video (.mp4) via PHP
file_put_contents('derp.mp4', file_get_contents('http://video.ak.fbcdn.net/hvideo-ak-prn2/v/1032822_578813298845318_1606611618_n.mp4?oh=c3c6a02985213f7c47386f4653792ca6&oe=5200506F&__gda__=1375798216_02752679a44bc4b3c514bee21e000959'));

Categories : PHP

Facebook Canvas URL redirection to 404 Page of Facebook
The Canvas URL can't be : https://apps.facebook.com/272901126185053/ It should the URL to the app where it is hosted. The link you mentioned is the canvas page.

Categories : Facebook

Programmatically like a facebook fan page in Facebook android SDK
To like a post on facebook, I use this part of code to create the request. Request likeRequest = new Request(Session.getActiveSession(), pageid + "/likes", null, HttpMethod.POST, new Request.Callback() { @Override public void onCompleted(Response response) { } }); Where I already logged in to Facebook, so I can just call the Session.getActiveSession(). Then I execute the request with: Request.executeBatchAndWait(likeRequest); You should run this in an Asynctask, since you are not allowed to do network stuff on your main thread.

Categories : Android

Invoking Facebook app on iOS to a specific Facebook page
This link fb://profile/135057709986569 would open my Facebook page on iOS if the Facebook app is installed. Just replace the number with your Facebook ID. (Find it by going to your page admin menu and looking at the url). Next you can open it via code like this: NSURL *myURL = [NSURL URLWithString:@"fb://profile/135057709986569"]; [[UIApplication sharedApplication] openURL:myURL]; See https://developer.apple.com/library/IOs/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW18 This wiki shows you a huge list of possible facebook app links: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook

Categories : Iphone

How to Facebook page id using Facebook sdk3.1 for Android
To retrieve the list of the pages you can query the following end point /me/accounts This end point along with manage_pages permission will give you the list of the pages the User administers and you can use the same along with the Page's access_token provided with each to post on the corresponding pages.

Categories : Android

jQuery .load stops video embedded in page / reloads whole page
I looked at the page and the #content div appears to include the embedded video, which you are hiding and showing in the js. You want to only hide and show the #liveracingblog div The following change should work: $.ajaxSetup( { cache: false, beforeSend: function() { $('#liveracingblog').hide(); $('#loading').show(); }, complete: function() { $('#loading').hide(); $('#liveracingblog').show(); }, success: function() { $('#loading').hide(); $('#liveracingblog').show(); } }); Also I notice that a huge amount of records are being

Categories : PHP

php - Facebook Video Upload Curl
Use the path to the video on server instead of the url. So: $video = "uploads/video.mp4"; Then: $data = array('name' => 'file', 'file' => '@'.realpath($video), 'access_token' => $access_token, '_title' => $video_title, 'description' => $video_desc); Notice the use of realpath() following the '@' symbol. Haven't tested with your code but I have a similar implementation and works great. Should do the trick!

Categories : PHP

uploading video to facebook error 2
So I changed things around a bit. I am using code from HelloFacebookSample app to make sure I am logged in and I no longer get the error 2. The debugger shows that the video starts to upload as it shows the NSLog for VideoData. However after a while the data Stream starts to show 00000000 00000000 00000000 00000000 00000000 00000000 and then maybe some with something like 6d766578 00000020 for a while then back to zeros again with increasing frequency. Then finally it errors out with 2013-06-27 22:50:14.407 my little world app[8145:907] Error: The operation couldn’t be completed. (com.facebook.sdk error 5.) not sure what this means but will post another question.

Categories : Facebook



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.