Twitter Integration in SambaPos 5

Hi,
I have problem to displaying tweet as ENTITY NOTE .Kindly guide me what i have to do to resolve this problem.

You need to execute Update Entity Note action to display tweets as entity notes. Did you added this action? How did you implemented twitter integration? Did you followed a tutorial to implement this? Please let us now what you’ve implemented so far so we can understand if it is a configuration mistake or not.

Yes I already implement this and call rule on POP Clicked event and I followed that tutorial for implement twitter integration in sambapos 5
Twitter Module - Setting up Twitter for the module. but nothing happened.

Hi emre,

I have executed rule on Event Ticket Entity Changed.It Created note with Static Data.But when i applied dynamically i will not create a Entity Note.or we can say it will not execute tweet.

Which tag did you used to update note? If it is possible please post few screenshots about your configuration so I can test it on my side.

There are a few steps missing in that tutorial that we have not released a tutorial for yet. I plan to release a twitter tutorial but am waiting to finish a specific setup first.

Likely he is missing the correct tags for passing the tweets and twitter user.

@Sita_Bliss Try putting this under Detail Format section of your Twitter Device Settings:

{DATE}
{TWEET USER} tweeted:
{TWEET}

Values can be read in rules using {:TWEETUSER} and {:TWEET}

1 Like

Hi kendash,

Thanks alot its working.

1 Like

Hi Emre,
Thanks alot you to also

1 Like

I am getting this errorTwitter%20Error

-----------------------------
[General Info]

Application: SambaPOS
Version:     5.2.13
Region:      en
DB:          SQ
Machine:     SERVER
User:        McAmen
Date:        15/09/2018
Time:        6:41 AM

User Explanation:

McAmen said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Message:     Cannot perform runtime binding on a null reference
Source:      Anonymously Hosted DynamicMethods Assembly
Stack Trace: at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at CallSite.Target(Closure , CallSite , Object )
   at Samba.Addon.TwitterOrders.TwitterOrdersDevice.Test()
   at Samba.Services.Implementations.DeviceService.TestDevice(String deviceName, String key) in C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Services\Implementations\DeviceService.cs:line 106
   at Samba.Presentation.ClientLibrary.Modules.SettingsModule.SettingsViewModel.OnTestDevice(String obj) in C:\Users\vehbi\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\SettingsModule\SettingsViewModel.cs:line 447
   at Microsoft.Practices.Prism.Commands.DelegateCommand`1.<>c__DisplayClass6.<.ctor>b__2(Object o)
   at Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)
   at Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Documents.Hyperlink.OnClick()
   at System.Windows.Documents.Hyperlink.DispatchNavigation(Object sender)
   at System.Windows.Documents.Hyperlink.DoUserInitiatedNavigation(Object sender)
   at System.Windows.Documents.Hyperlink.OnMouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
   at System.Windows.Documents.Hyperlink.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v16.2, Version=16.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v16.2, Version=16.2.13.0
System, Version=4.0.0.0
DevExpress.Xpf.Grid.v16.2.Core, Version=16.2.13.0
WindowsBase, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v16.2, Version=16.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=1.0.0.0
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=1.0.0.0
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v16.2, Version=16.2.13.0
NCalc, Version=1.3.8.0
WindowsInput, Version=1.0.4.0

-----------------------------

[System Info]

Operating System
-Microsoft Windows 10 Pro
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = 120
--FreePhysicalMemory = 612928
--OSArchitecture = 32-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.17134

Machine
-SERVER
--Manufacturer = Dell Inc.
--Model = Latitude E5540
--TotalPhysicalMemory = 3409272832
--UserName = SERVER\McAmen

You need to show your settings. Probably something setup wrong.

I just added the API keys only Is there any setting I need to do or the module automatically takes care of the rest?

You have to set it up and setup the module correctly.I don’t know if you set it up correctly because we can’t see that.

twitter

This is all I have done. I have just added this

I think it is very likely the twitter integration is using an outdated version of the Twitter API that is no longer available (because it reached “End of life” status).

You posted a screenshot earlier with a message saying “Gone”

I believe this is the API response, giving HTTP code 410 - “Gone”, which according to Twitter API documentation states “This resource is gone. Used to indicate that an API endpoint has been turned off.” (https://developer.twitter.com/en/docs/basics/response-codes.html).

3 Likes

That’s a shame if so.

Oh yes, because I created this twitter app with their latest dev tools and as I was following the tutorial on this platform it looked different. It took me 2 days to become approved to create that app and get access token keys. So maybe we need to update the Samba side.

I have tried it but didn’t get the result. I found fake receipt generator online you can also try them.

I’m pretty sure the API for Twitter changed.